Trying to play with Laravel today for the first time. I am getting the following error when I attempt to visit localhost/project/public:
InvalidArgume
You're trying to redirect to a named route whose name is login, but you have no routes with that name:
login
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.
'as'