dimanche 12 février 2017

Laravel 5 - Allowig Register Only After Auth and For Admins

I am trying to setup the Laravel register page so that /register is available only:

  • if the user is logged in

AND

  • if the user is of "type" - "staff" (stored in the database)

Which file needs to be modified so that staff users can register new patient users? In this case public registration would be turned off for normal/patients users.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2kgXybp
via IFTTT

Aucun commentaire:

Enregistrer un commentaire