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