phpvms/resources/stubs/modules/resource-collection.stub

24 lines
413 B
Plaintext
Raw Normal View History

2017-12-14 12:24:41 +08:00
<?php
namespace $NAMESPACE$;
use Illuminate\Http\Resources\Json\ResourceCollection;
/**
* Class $CLASS$
* @package $NAMESPACE$
*/
2017-12-14 12:24:41 +08:00
class $CLASS$ extends ResourceCollection
{
/**
* Transform the resource collection into an array.
*
* @param \Illuminate\Http\Request
* @return array
*/
public function toArray($request)
{
return parent::toArray($request);
}
}