mirror of
https://github.com/10h30/Test-Laravel-Auth-Basics.git
synced 2026-07-11 18:56:14 +09:00
Email verification test
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user