<?php

namespace App\Http\Resources\Task;

use App\Http\Resources\Task\TaskResource;
use Illuminate\Http\Resources\Json\ResourceCollection;

class TaskCollection extends ResourceCollection
{
    /**
     * Transform the resource collection into an array.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */

    public function toArray($request)
    {
        return TaskResource::collection($this->collection);
    }
}
