File "resource-collection.stub"
Full Path: /home/pulsehostuk9/public_html/invoicer.pulsehost.co.uk/vendor/laravel/framework/src/Illuminate/Foundation/Console/stubs/resource-collection.stub
File size: 395 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace {{ namespace }};
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\ResourceCollection;
class {{ class }} extends ResourceCollection
{
/**
* Transform the resource collection into an array.
*
* @return array<int|string, mixed>
*/
public function toArray(Request $request): array
{
return parent::toArray($request);
}
}