lundi 16 mars 2020

Laravel Email Verification Disable & Enable with one touch

is there anyway we can set enable / disable email verification dynamically when users register ?

I think, in order to set email verification, we should set Auth::routes(['verify' => true]); and in User model, we should set class User extends Authenticatable implements MustVerifyEmail

Is there any simple way to do this dynamically? So let's say we set enable / disable in admin panel. And according to it, can we set enable / disable in front auth page?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire