mirror of
https://github.com/ambieco/scribe.git
synced 2026-04-01 22:34:38 +08:00
26 lines
517 B
PHP
26 lines
517 B
PHP
<?php
|
|
|
|
namespace Mpociot\ApiDoc\Tests\Fixtures;
|
|
|
|
use Illuminate\Http\Resources\Json\ResourceCollection;
|
|
|
|
class TestUserApiResourceCollection extends ResourceCollection
|
|
{
|
|
/**
|
|
* Transform the resource into an array.
|
|
*
|
|
* @param \Illuminate\Http\Request $request
|
|
*
|
|
* @return array
|
|
*/
|
|
public function toArray($request)
|
|
{
|
|
return [
|
|
'data' => $this->collection,
|
|
'links' => [
|
|
'self' => 'link-value',
|
|
],
|
|
];
|
|
}
|
|
}
|