vendredi 22 juillet 2016

Simple Admin User with Laravel 5.2 Authentication

I've setup Laravel's built in authentication feature, but it doesn't have an admin. I've been looking up ways to do this, but many tutorials seem a bit weighty. I wanted as simple, safe solution that takes advantage of the users table I already have.

I've looked at this: http://ift.tt/2a5zWkH

The instructions come from several users, and it's a bit hard to follow. I've set up a "isAdmin" column to my users database. I have a middleware for the admin, but I'm not sure how to proceed from here.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire