23 lines
558 B
PHP
23 lines
558 B
PHP
<?php
|
|
|
|
namespace Modules\Mall\Http\Resources\Api\Order;
|
|
|
|
use Illuminate\Http\Resources\Json\JsonResource;
|
|
|
|
class RefundLogResource extends JsonResource
|
|
{
|
|
|
|
public function toArray($request): array
|
|
{
|
|
return [
|
|
'refund_log_id' => $this->id,
|
|
'title' => $this->title,
|
|
'remark' => $this->remark,
|
|
'state_text' => $this->state_text,
|
|
'isMy' => $this->refund->user->is($this->userable),
|
|
'created_at' => (string) $this->created_at,
|
|
];
|
|
}
|
|
|
|
}
|