vendredi 27 septembre 2019

Confirm form resubmission Laravel

I am redirecting users based on their roles, I changed my AuthenticatedUsers.php and added this to the authenticated function

protected function authenticated(Request $request, $user)
{
    if (Auth::user()->priority == 'HI') {
        return view ('dashboard');
    }else{
        return view ('home');
    }
}

Now I got it working to redirect based on roles, however when I refresh the page it shows

CONFIRM FORM RESUBMISSION



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire