0👍
If you’re mentioning the middleware RedirectIfAuthenticated
then can you try this
public function handle(Request $request, Closure $next)
{
if(Auth::check() && Auth::user()->role == 'customer')
{
return redirect ('/home');
}else{
abort(403);
}
}
- [Vuejs]-Vuex mutate state in module with function in other module
- [Vuejs]-Is there an a way to print value of input In certain places of the a4 paper via html javascript?
Source:stackexchange.com