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