user(); if ($user->isAdmin()) { return $next($request); } return redirect()->route('bo.home'); } }