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