I am using Laravel 6.0 and I try to list all my routes with artisan route:list, but it fails and returns:
artisan route:list
Illuminate\\Contracts\\Container\\
This is the perfect answer, I think:
use App\Http\Controllers\HomepageController; Route::get('/', [HomepageController::class, 'index']);
Route::get('/', 'App\Http\Controllers\HomepageController@index');