This commit is contained in:
2023-01-11 11:00:43 +08:00
commit ff55141a1e
791 changed files with 177427 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
<?php
namespace App\Api\Resources\User;
use App\Api\Resources\BaseCollection;
class UserDataCollection extends BaseCollection
{
public function toArray($request): array
{
return [
'data' => $this->collection->map(function ($info) {
return new UserDataResource($info);
}),
'page' => $this->page(),
];
}
}