What is in your
return $next($request);
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hey Laravelers
I make Multi Auth login system for 4 levels
admin accountant customer staff
the code in the middleware like that
if(Auth::user()->user_role == 'staff'){
return $next($request);
} else {
return redirect('/home');
}
but even when I access with the roles it pull me back to the home page although I gave every role private dashboard to access
help !!!!
Please or to participate in this conversation.