Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question