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