Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // spatie package redirection on the base of role
- protected function authenticated($request, $user){
- if($user->hasRole('superadmin')){
- return redirect('/admin/dashboard');
- } else {
- return redirect('/');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement