ok

Mini Shell

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

<?php

namespace App\Http\Resources\V2;

use Illuminate\Http\Resources\Json\ResourceCollection;

class GeneralSettingCollection extends ResourceCollection
{
    public function toArray($request)
    {
        return [
            'data' => $this->collection->map(function($data) {
                return [
                    'logo' => $data->logo,
                    'site_name' => $data->site_name,
                    'address' => $data->address,
                    'description' => $data->description,
                    'phone' => $data->phone,
                    'email' => $data->email,
                    'facebook' => $data->facebook,
                    'twitter' => $data->twitter,
                    'instagram' => $data->instagram,
                    'youtube' => $data->youtube,
                    'google_plus' => $data->google_plus
                ];
            })
        ];
    }

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

Zerion Mini Shell 1.0