1

First of all I am new to laravel. I have installed laravel 5.5 and have configured the register and login and I am trying to add email verification when a user registers. I have pulled in composer require josiasmontag/laravel-email-verification. This is my route

Route::get('/', function () {
return view('welcome');
});

Auth::routes();

Route::group(['middleware' => ['web', 'auth', 'isEmailVerified']], function () {
('/home', 'HomeController@index')->name('home')
}

and done everything but when I test it I get

when I test it I get

"Parse error: syntax error, unexpected ','" and it is coming from the route

please help

Sam Banana
  • 57
  • 1
  • 10

1 Answers1

1

Because you have syntax error here.

Route::group(['middleware' => ['web', 'auth', 'isEmailVerified']], function () {
   Route::get('/home', 'HomeController@index')->name('home');
});

You forgot to add Route::get('/home' or Route::post('/home'

Niklesh Raut
  • 34,013
  • 16
  • 75
  • 109