You've already forked Epicnabbo-Catalogus-Updated-Daily
🆙 More fixes 🆙
This commit is contained in:
@@ -9,9 +9,7 @@ use JsonSerializable;
|
||||
class OnlineUserCountResource extends JsonResource
|
||||
{
|
||||
/**
|
||||
* Transform the resource into an array.
|
||||
*
|
||||
* @return array|Arrayable|JsonSerializable
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
#[\Override]
|
||||
public function toArray($request): array
|
||||
|
||||
@@ -10,15 +10,13 @@ use JsonSerializable;
|
||||
class OnlineUsersResource extends JsonResource
|
||||
{
|
||||
/**
|
||||
* Transform the resource into an array.
|
||||
*
|
||||
* @return array|Arrayable|JsonSerializable
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
#[\Override]
|
||||
public function toArray(Request $request): array
|
||||
{
|
||||
return [
|
||||
'data' => $this->paginate(10),
|
||||
'data' => $this->resource,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,9 +9,7 @@ use JsonSerializable;
|
||||
class UserResource extends JsonResource
|
||||
{
|
||||
/**
|
||||
* Transform the resource into an array.
|
||||
*
|
||||
* @return array|Arrayable|JsonSerializable
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
#[\Override]
|
||||
public function toArray($request): array
|
||||
|
||||
Reference in New Issue
Block a user