user()->activity()) ->with('actor') ->allowedFilters([ AllowedFilter::exact('ip'), AllowedFilter::partial('event'), ]) ->allowedSorts(['timestamp']) ->paginate(min($request->query('per_page', 50), 100)) ->appends($request->query()); return $this->fractal->collection($activity) ->transformWith($this->getTransformer(ActivityLogTransformer::class)) ->toArray(); } }