Advertisement
Guest User

Untitled

a guest
Aug 17th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. // spatie package redirection on the base of role
  2.  
  3.  
  4. protected function authenticated($request, $user){
  5. if($user->hasRole('superadmin')){
  6. return redirect('/admin/dashboard');
  7. } else {
  8. return redirect('/');
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement