role; if ($role === 1) { return $next($request); } return redirect()->route('bo.dashboard'); } }