<?php

namespace App\Http\Resources\MarcasPlazas;

use Illuminate\Http\Resources\Json\ResourceCollection;

class MarcasPlazasCollection extends ResourceCollection
{

    public $collects = MarcasPlazasResource::class; //para que nos envie el formato d euno individual

    /**
     * Transform the resource collection into an array.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
    public function toArray($request)
    {
        return [
            'data' => $this->collection
        ];
    }
}
