I am studying laravel by following the following tutorial and caught on to the part the instructor gives the following command line
php artisan make:auth
In his creates the following block:
Route::group(['middleware' => 'web'], function (){
Route::auth();
Route::get('/home', 'HomeController@index');
});
In my own create the lines:
Route::auth();
Route::get('/home', 'HomeController@index');
This if I manually put the block does not work.
Give a
Whoops, looks like something went wrong.
FatalErrorException
Having trouble if you do not have this group?
Where can I be wrong?