fixed tax class detail
This commit is contained in:
parent
b4c5874ddf
commit
8394ab5c6b
|
|
@ -0,0 +1,28 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* TaxClassDetail.php
|
||||||
|
*
|
||||||
|
* @copyright 2022 opencart.cn - All Rights Reserved
|
||||||
|
* @link http://www.guangdawangluo.com
|
||||||
|
* @author Edward Yang <yangjin@opencart.cn>
|
||||||
|
* @created 2022-08-12 15:56:28
|
||||||
|
* @modified 2022-08-12 15:56:28
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace Beike\Admin\Http\Resources;
|
||||||
|
|
||||||
|
use Illuminate\Http\Resources\Json\JsonResource;
|
||||||
|
|
||||||
|
class TaxClassDetail extends JsonResource
|
||||||
|
{
|
||||||
|
public function toArray($request): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
'id' => $this->id,
|
||||||
|
'name' => $this->title,
|
||||||
|
'description' => sub_string($this->description),
|
||||||
|
'created_at' => time_format($this->created_at),
|
||||||
|
'updated_at' => time_format($this->updated_at),
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue