Skip to content

New Auth Email Verified fixed

Compare
Choose a tag to compare
@sarthaksavvy sarthaksavvy released this 27 Mar 18:24

If you need to have some route behind verified middleware, then you can use {guard}.verified
for example, if you have created a student guard then to protect student home page with email verified route you can add middleware like this inside routes/student.php file

...
Route::get('/', 'HomeController@index')->name('student.dashboard')->middleware('student.verified');
...