Initial commit

This commit is contained in:
2024-02-22 21:14:12 +01:00
commit 1153029afa
98 changed files with 13995 additions and 0 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,
];
}
}