You've already forked Atomcms-edit
Initial commit
This commit is contained in:
+25
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Http\Resources;
|
||||
|
||||
use Illuminate\Contracts\Support\Arrayable;
|
||||
use Illuminate\Http\Resources\Json\JsonResource;
|
||||
use JsonSerializable;
|
||||
|
||||
class OnlineUserCountResource extends JsonResource
|
||||
{
|
||||
/**
|
||||
* Transform the resource into an array.
|
||||
*
|
||||
* @return array|Arrayable|JsonSerializable
|
||||
*/
|
||||
#[\Override]
|
||||
public function toArray($request): array
|
||||
{
|
||||
return [
|
||||
'onlineCount' => $this->resource,
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user