laravel check connection database command line code example Example: check which database connect laravel DB::connection();