feat: Socket Support and Event Examples

This commit is contained in:
2023-11-10 18:07:55 +01:00
parent ce6405cb8a
commit eac670642a
14 changed files with 754 additions and 16 deletions

View File

@@ -0,0 +1,21 @@
<?php
namespace App\Http\Resources;
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;
class RoleResource extends JsonResource
{
/**
* Transform the resource into an array.
*
* @return array<string, mixed>
*/
public function toArray(Request $request): array
{
return [
'name' => $this->name,
];
}
}