laravel php how to know base connected code example Example: check which database connect laravel DB::connection();