check() && (auth()->user()->role == 'affiliator')) { return $next($request); } return redirect('/login'); } }