March 28, 2020

3 thoughts on “#18 Redirect Users after Login | Laravel Role based Authenticated | E-commerce website tutorial

  1. why is not working in my laravel 5.7?
    protected function authenticated($request, $user){

    if($user->isRole(4)){
    return redirect('/traveller');
    }
    elseif ($user->isRole(3)) {
    return redirect('/organizer');
    }
    else
    return redirect('/');
    }

Leave a Reply

Your email address will not be published. Required fields are marked *