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



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2nJMVk0
via IFTTT

Aucun commentaire:

Enregistrer un commentaire