-wip
This commit is contained in:
@@ -4,14 +4,13 @@ declare(strict_types=1);
|
||||
|
||||
namespace App\Http\Resources;
|
||||
|
||||
use Illuminate\Http\Resources\Json\JsonResource;
|
||||
use Illuminate\Http\Resources\Json\ResourceCollection;
|
||||
|
||||
class FullCVCollection extends ResourceCollection
|
||||
{
|
||||
public function toArray($request): array
|
||||
public function toArray($request): array|JsonResource
|
||||
{
|
||||
return [
|
||||
'data' => $this->collection,
|
||||
];
|
||||
return FullCVResource::collection($this->collection);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user