修改文章接口
parent
b9d657ad45
commit
1f66b5064f
|
|
@ -15,6 +15,7 @@ class ArticleResource extends JsonResource
|
|||
public function toArray($request)
|
||||
{
|
||||
return [
|
||||
'id' => $this->id,
|
||||
'title' => $this->title,
|
||||
'cover' => $this->cover,
|
||||
'subtitle' => $this->subtitle,
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ class ArticleSimpleResource extends JsonResource
|
|||
public function toArray($request)
|
||||
{
|
||||
return [
|
||||
'id' => $this->id,
|
||||
'title' => $this->title,
|
||||
'subtitle' => $this->subtitle,
|
||||
'cover' => $this->cover,
|
||||
|
|
|
|||
Loading…
Reference in New Issue