mardi 20 décembre 2016

Closing database connection In Laravel 5.1

Is that possible to close the database connection after running each database query in Laravel 5.1. I have already built an application by using the Laravel 5.1 and PostgreSQL, and in my server there are limited number of connections has been provided to connect with the database, that's why sometimes I am getting the error "To Many Connections". So please tell me how I can resolve this problem.

I am not sure if Laravel automatically closes the db connection after each db request.

Thanks in advance...



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire