mardi 27 mars 2018

How to make the blades accessible for both user and admin while I am using two middleware, one for user auth and o=second one for admin??

I have 2 different tables, user and admin. There are 2 middleware as I told you before. I want to make the blade accessible for both user and admin. I'm using middleware in the controller. Like this:

public function __construct()
{
    $this->middleware('auth');
}



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire