VoteResourceCollection.php
625 Bytes
<?php
namespace FootyRoom\Http\Vote;
use Illuminate\Support\Collection;
use Illuminate\Http\Resources\Json\ResourceCollection;
class VoteResourceCollection extends ResourceCollection
{
public $collects = VoteResource::class;
/**
* @param \FootyRoom\Queries\Vote\Vote[] $resource
*/
public function __construct(array $resource = [])
{
$resource = new Collection($resource);
parent::__construct($resource);
}
/**
* @param \Illuminate\Http\Request $request
*/
public function toArray($request): Collection
{
return $this->collection;
}
}