添加产品地址

This commit is contained in:
Edward Yang 2022-08-26 12:01:30 +08:00
parent 729fdf2f9a
commit e2dd6c6086
1 changed files with 1 additions and 0 deletions

View File

@ -26,6 +26,7 @@ class ProductResource extends JsonResource
'price_formatted' => currency_format($masterSku->price),
'active' => $this->active,
'position' => $this->position,
'url' => shop_route('products.show', $this->id),
'created_at' => time_format($this->created_at),
'deleted_at' => $this->deleted_at ? time_format($this->deleted_at) : '',
'url_edit' => admin_route('products.edit', $this->id),