1
0
Files
GongShangLian/app/Http/Resources/WithdrawResource.php
2020-08-06 15:36:28 +08:00

32 lines
864 B
PHP

<?php
namespace App\Http\Resources;
use Illuminate\Http\Resources\Json\JsonResource;
class WithdrawResource extends JsonResource
{
/**
* Transform the resource into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toArray($request)
{
return [
'money' => $this->money,
'service' => $this->service,
'type' => $this->type,
'type_text' => $this->type_text,
'bank_name' => $this->bank_name,
'bank_card' => $this->bank_card,
'bank_user' => $this->bank_user,
'status' => $this->status_text,
'reason' => $this->reason,
'created_at' => (string) $this->created_at,
'paid_at' => (string) $this->paid_at,
];
}
}