make: auth not create Route :: group

1

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?

    
asked by anonymous 27.08.2017 / 22:34

1 answer

1

No problem if Route::auth(); is not in a route group.

    
28.08.2017 / 18:53