*/ public function toArray(Request $request): array { return [ 'id' => $this->id, 'category_id' => $this->category_id, 'category' => KeywordResource::make($this->whenLoaded('category')), 'title' => $this->title, 'cover_image' => $this->cover_image, 'description' => $this->description, 'type' => $this->type, 'content' => $this->content, 'video' => $this->video, 'files' => $this->files, 'created_at' => $this->created_at->timestamp, ]; } }