lundi 26 octobre 2015

Laravel Authentication with condition

I am using Laravel 5.1 and Laravel's default authentication system.

In database (MySQL) I add a new column named 'role'. The value will be 1 for admin and 2 for members.

Now I want to give login permission only for admin, means where the value is 1. How can I do that?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire