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