mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
28 lines
575 B
PHP
28 lines
575 B
PHP
<?php
|
|
|
|
namespace App\Http\Resources\V4;
|
|
|
|
use Illuminate\Http\Resources\Json\ResourceCollection;
|
|
|
|
class UserProfileMangaListCollection extends ResourceCollection
|
|
{
|
|
|
|
/**
|
|
* The resource that this resource collects.
|
|
|
|
*/
|
|
public $collects = 'App\Http\Resources\V4\UserProfileMangaListResource';
|
|
|
|
/**
|
|
* Transform the resource collection into an array.
|
|
*
|
|
* @param \Illuminate\Http\Request $request
|
|
* @return array
|
|
*/
|
|
public function toArray($request)
|
|
{
|
|
return [
|
|
'data' => $this->collection
|
|
];
|
|
}
|
|
} |