roles == 'masteradmin'){ return $next($request); } return redirect('/login'); } }