A
A
avr19722017-10-17 23:14:02
HTML
avr1972, 2017-10-17 23:14:02

Laravel gives an error Route [login] not defined. Where is the mistake?

In Laravel 5.5. in the web.php file I registered the router
Route::get('/',[ 'as' =>'home', 'uses' => 'Admin\[email protected]', function () {
//
}])-> middleware('auth');
In a controller:
class IndexController extends Controller
{
public function show(){
return view('welcome');
}
}
Throws an error Route [login] not defined. Please tell me how to write correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Melikhov, 2017-10-17
@avr1972

php artisan make:auth
will generate a blank for registration and login and this will solve your problem

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question