ok
Direktori : /home2/selectio/public_html/limpiar.in.net/app/Http/Resources/V2/ |
Current File : //home2/selectio/public_html/limpiar.in.net/app/Http/Resources/V2/CustomerPackageResource.php |
<?php namespace App\Http\Resources\V2; use Illuminate\Http\Resources\Json\JsonResource; class CustomerPackageResource extends JsonResource { /** * Transform the resource into an array. * * @param \Illuminate\Http\Request $request * @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializable */ public function toArray($request) { return [ 'id' =>(int) $this->id, 'name' => $this->getTranslation('name'), 'logo' => uploaded_asset($this->logo), 'product_upload_limit' =>(int) $this->product_upload, 'amount' => ($this->amount > 0) ? single_price($this->amount) : translate('Free'), 'price' => (double) $this->amount, ]; } }