File manager - Edit - /var/www/html/back/app/Http/NotDistributedPaymentResource.php
Back
<?php namespace App\Http\Resources; use Illuminate\Http\Request; use Illuminate\Http\Resources\Json\JsonResource; class NotDistributedPaymentResource extends JsonResource { public function toArray(Request $request): array { return [ 'id' => $this->id, 'name' => $this->payment->name, 'payment_id' => $this->payment_id, 'amount' => $this->amount, 'cashbox' => $this->cashbox ?? 0, 'commission' => $this->comission ?? 0, 'article_id' => $this->article_id, 'project_id' => $this->project_id, 'payment_date' => $this->payment->payment_date ?? null, 'payment_type' => $this->payment->payment_type ?? null, ]; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0.17 |
proxy
|
phpinfo
|
Settings