$this->group()]); } public function storeUrl(): string { return $this->url(); } /** * @return mixed */ public function data() { return [ 'data' => $this->toArray(), 'meta' => [ 'links' => [ 'store' => $this->storeUrl(), ] ] ]; } public function beforeSave(ActionRequest $request): void { return; } /** * @return array */ public function saveAttributes(ActionRequest $request): array { return $request->validated(); } }