checkPermission('settings-manage'); $this->checkPermission('users-manage'); $query = Activity::query()->with(['user']); return $this->apiListingResponse($query, [ 'id', 'type', 'detail', 'user_id', 'loggable_id', 'loggable_type', 'ip', 'created_at', ]); } }