Hi, i have metronic Laravel starterkit,
Currently all my users can register without being verified, i want to verify the existing users and subsequent users that will register.
Thanks
Hi
Make sure your User model implements the MustVerifyEmail interface.
use Illuminate\Contracts\Auth\MustVerifyEmail;
class User extends Authenticatable implements MustVerifyEmail
{
// Your existing code
}
Route::middleware(["auth", "verified"])->group(function () {
Route::get("/dashboard", function () {
return view("dashboard");
})->name("dashboard");
});