fixed tax class detail

This commit is contained in:
Edward Yang 2022-08-22 16:19:30 +08:00
parent b4c5874ddf
commit 8394ab5c6b
1 changed files with 28 additions and 0 deletions

View File

@ -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),
];
}
}