Budget: 500 UAH Deadline: 1 day
Approximately so
$user = auth()->user();
if($user->role==1){
The return view (admin)
The
if($user->role==0){
return view (‘user’);
The
If you need to call and explain something else, write.