Email verification test

This commit is contained in:
PovilasKorop
2021-11-01 08:21:55 +02:00
parent 177b740701
commit 355d40f627
4 changed files with 71 additions and 0 deletions
+5
View File
@@ -23,4 +23,9 @@ Route::get('users', [\App\Http\Controllers\UserController::class, 'index'])->nam
Route::get('profile', [\App\Http\Controllers\ProfileController::class, 'show'])->name('profile.show');
Route::put('profile', [\App\Http\Controllers\ProfileController::class, 'update'])->name('profile.update');
// Task: this "/secretpage" URL should be visible only for those who VERIFIED their email
// Add some middleware here, and change some code in app/Models/User.php to enable this
Route::view('/secretpage', 'secretpage')
->name('secretpage');
require __DIR__.'/auth.php';