*/ public function toArray(Request $request): array { return [ 'id' => $this->id, 'uuid' => $this->uuid, 'title' => $this->title, 'content' => $this->content, ...$this->formatTimestamps(), ...$this->resourceMeta($request), ]; } /** * 리소스별 권한 매핑을 반환합니다. * * @return array */ protected function abilityMap(): array { return [ 'can_create' => 'gnuboard7-hello_module.memos.create', 'can_update' => 'gnuboard7-hello_module.memos.update', 'can_delete' => 'gnuboard7-hello_module.memos.delete', ]; } }