DB::connection('local')->create() laravel 1

DB::connection(‘local’)->create() laravel

$users = DB::connection('foo')->select(...);

Here is what the above code is Doing:
1. It’s creating a new connection to the database.
2. It’s selecting all the users from the database.
3. It’s returning the users.

Similar Posts