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/syn.corals.io/Corals/modules/Utility/Transformers/API/Address/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/syn.corals.io/Corals/modules/Utility/Transformers/API/Address/LocationTransformer.php
<?php

namespace Corals\Modules\Utility\Transformers\API\Address;

use Corals\Foundation\Transformers\APIBaseTransformer;
use Corals\Modules\Utility\Models\Address\Location;

class LocationTransformer extends APIBaseTransformer
{
    /**
     * @param Location $location
     * @return array
     * @throws \Throwable
     */
    public function transform(Location $location)
    {
        $transformedArray = [
            'id' => $location->id,
            'name' => $location->name,
            'address' => $location->address,
            'lat' => $location->lat,
            'long' => $location->long,
            'zip' => $location->zip,
            'city' => $location->city,
            'state' => $location->state,
            'country' => $location->country,
            'status' => $location->status,
            'created_at' => format_date($location->created_at),
            'updated_at' => format_date($location->updated_at),
        ];

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

Spamworldpro Mini