mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-09-02 13:21:02 +00:00
24 lines
544 B
PHP
24 lines
544 B
PHP
<?php
|
|
|
|
namespace App\Platform\Modules\Http\Resources;
|
|
|
|
use Illuminate\Contracts\Support\Arrayable;
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Http\Resources\Json\ResourceCollection;
|
|
|
|
class ModuleCollection extends ResourceCollection
|
|
{
|
|
/**
|
|
* Hand back the default mapping over the wrapped module resources.
|
|
*
|
|
* @param Request $request
|
|
* @return array|Arrayable|\JsonSerializable
|
|
*/
|
|
public function toArray($request): array
|
|
{
|
|
$modules = parent::toArray($request);
|
|
|
|
return $modules;
|
|
}
|
|
}
|