Opa, beleza Everton?
Asdrubal Adamastor
1

Opa, e aí Asdrubal.

No seu Controller, basta retornar a view de acordo com o papel:

if($request->user()->hasRole(‘user’)){
 return view(‘home’);
 }
 if($request->user()->hasRole(‘admin’)){
 return view(‘admin’);
 }

Like what you read? Give everton zp a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.