This commit is contained in:
2023-03-08 09:16:04 +08:00
commit e78454540f
1318 changed files with 210569 additions and 0 deletions

View File

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