check() || !auth()->user()->isEmployeeOrAdmin()) { return response()->json(['error' => 'Доступ запрещен'], 403); } return $next($request); } }