Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12111

Larave database connection

$
0
0

I am a bit confused about laravel database connection.If I execute a laravel code that select from database three queries as example.If laravel establish database connection and login into database then logout for each executing query or laravel connect with the first query and logout after the last query.

// login to the database    User::all();// logout from database// login to the database    Info::all();// logout from database// login to the database    Family::all();// logout from database

or

// login to the database    User::all();    Info::all();    Family::all();// logout from database

I am asking that for database session not on the code level.All regards


Viewing all articles
Browse latest Browse all 12111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>