laravel check db connectivity code example Example: check which database connect laravel DB::connection();