Files
ploi-core/app/DataTransferObjects/Support/Data.php
Ralph J. Smit d22bb52f35 Apply style
2023-09-26 23:47:24 +02:00

15 lines
545 B
PHP

<?php
namespace App\DataTransferObjects\Support;
class Data extends \Spatie\LaravelData\Data
{
/**
* When working with paginated data, we want to include pagination details in JSON
* responses from the API. However, due to legacy requirements Ploi Core is using
* a different structure than this package assumes. Therefore, we will override
* the data collection, register a custom transformer and output the structure.
*/
protected static string $_paginatedCollectionClass = PaginatedDataCollection::class;
}