Skip to content

3.7.0

Choose a tag to compare

@binaryk binaryk released this 15 Jun 12:08
· 148 commits to 3.x since this release

Index main meta

You can also override the main meta object for the index, not the one for per item:

public function resolveIndexMainMeta(RestifyRequest $request, Collection $items)
{
 $default = parent::resolveIndexMeta($request);
    return array_merge($default, [
        'next_payment_at' => $this->resource->current_payment_at->addMonth(),
    ]);
}