lundi 26 octobre 2015

Advanced control Auth::Check

if the columns in the table value of admin, I want to show the admin page, not water to another page

$type = array('type' =>'Admin');
        if (Auth::check($type))
        {
            return view('admin.index');
        }

        Auth::logout();
        return View::make('admin.auth.login');



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire