From 8394ab5c6b5da83096d1a68d9cc715fa51ff312d Mon Sep 17 00:00:00 2001 From: Edward Yang Date: Mon, 22 Aug 2022 16:19:30 +0800 Subject: [PATCH] fixed tax class detail --- beike/Admin/Http/Resources/TaxClassDetail.php | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 beike/Admin/Http/Resources/TaxClassDetail.php diff --git a/beike/Admin/Http/Resources/TaxClassDetail.php b/beike/Admin/Http/Resources/TaxClassDetail.php new file mode 100644 index 00000000..f37d8a72 --- /dev/null +++ b/beike/Admin/Http/Resources/TaxClassDetail.php @@ -0,0 +1,28 @@ + + * @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), + ]; + } +}