user()->user_type !== 'admin') { return redirect()->route('landing'); } return $next($request); } }