Laravel: Route [login] not defined
Looks like you're using route('login')
to create a link to the login page or in form.
If you're using it in a link, just name get()
route:
Route::get('login', ['as' => 'login', 'uses' => 'LoginController@getView']);
If you're using the route()
helper in a form, do this for the post()
route.
You can use the artisan comp php artisan make:auth
to scaffold the authentication pages needed.
You can find the documentation for that here, https://laravel.com/docs/5.4/authentication