how to check database connection in laravel 6 code example Example: check which database connect laravel DB::connection();