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

1 commentaire:

  1. If you're looking to lose fat then you have to start using this totally brand new custom keto diet.

    To create this keto diet service, certified nutritionists, personal trainers, and top chefs joined together to develop keto meal plans that are efficient, suitable, economically-efficient, and delightful.

    Since their launch in 2019, 1000's of people have already remodeled their figure and health with the benefits a professional keto diet can give.

    Speaking of benefits: clicking this link, you'll discover eight scientifically-confirmed ones provided by the keto diet.

    RépondreSupprimer