ok

Mini Shell

Direktori : /home2/selectio/www/limpiar.in.net/app/Http/Resources/V2/
Upload File :
Current File : //home2/selectio/www/limpiar.in.net/app/Http/Resources/V2/PickupPointResource.php

<?php

namespace App\Http\Resources\V2;

use Illuminate\Http\Resources\Json\JsonResource;

class PickupPointResource 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"                	=> $this->id,
            "staff_id"             	=> $this->staff_id,
            "name"              	=> $this->name,
            "address"              	=> $this->address,
            "phone"       			=> $this->phone,
            "pick_up_status"        => $this->pick_up_status,
            "cash_on_pickup_status" => $this->cash_on_pickup_status,
        ];
    }

    public function with($request)
    {
        return [
            'success' => true,
            'status' => 200
        ];
    }
}

Zerion Mini Shell 1.0