📜  Route [login] 未定义.Route [login] 未定义. - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:10.601000             🧑  作者: Mango

代码示例1
You're trying to redirect to a named route whose name is login, but you have
no routes with that name:

Route::post('login', [ 'as' => 'login', 'uses' => 'LoginController@do']);

The 'as' portion of the second parameter defines the name of the route. The 
first string parameter defines its route.