public function index() { $cacheTag = ['managers']; $cacheKey = 'index'; $cacheKey .= http_build_query(array_only(Request::all(), $this->filters)); $response = Cache::tags($cacheTag)->remember($cacheKey, 60 * 24 * 7, function () { $_db = Managers::select(['id', 'name', 'email', 'active', 'role', 'avatar', 'created_at', 'updated_at']); return $this->filter($_db)->get()->toArray(); }); return $response; }