vendredi 6 mars 2020

Laravel Stop Registration from admin panel

I building settings page where the admin can change some setting in the website I want to add an option to stop registration

for example:

if registration is disabled and a user trying to go to register page he will automatically redirect to 404

Setting Table:

Name: The Name of option or setting

Value: The value (if this value = 0 that means this option is disabled and if it's 1 that means it's enabled)

I already add a column in setting table "stop_register"

what I want is when the value of this column is 0 then registration is off and when it's 1 then the registration is on



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire