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