user(); return [ 'id' => $this->id, 'title' => $this->title, 'no' => $this->no, 'category' => $this->category->title ?? '', 'trade' => $this->trade_title, 'description' => $this->description, 'cover' => Storage::disk(config('admin.upload.disk'))->url($this->cover), 'content' => $this->content, 'clicks' => $this->clicks, 'canRead' => $this->canRead(), 'created_at' => $this->created_at->toDateTimeString(), 'isFavorited' => $this->isFavoritedBy($user), ]; } }