laravel database connection code example
Example 1: check which database connect laravel
DB::connection();
Example 2: db import laravel
use Illuminate\Support\Facades\DB;
DB::connection();
use Illuminate\Support\Facades\DB;