first commit
This commit is contained in:
31
app/Http/Resources/WithdrawResource.php
Normal file
31
app/Http/Resources/WithdrawResource.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?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,
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user