📜  是不可调用的. - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:43.080000             🧑  作者: Mango

代码示例2
if you forget to choose your method:

     Route::get('/', 'WelcomeController')->name('welcome');
 
change it to:

     Route::get('/', [WelcomeController::class, 'index'])->name('welcome');
 
 
or

     Route::get('/', 'WelcomeController@YOUR_METHOD_NAME')->name('welcome');