Initial commit

This commit is contained in:
root
2026-05-09 17:28:23 +02:00
commit 9d73f82529
5575 changed files with 281989 additions and 0 deletions
+25
View File
@@ -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 UserResource extends JsonResource
{
/**
* Transform the resource into an array.
*
* @return array|Arrayable|JsonSerializable
*/
#[\Override]
public function toArray($request): array
{
return [
'data' => $this->resource ?: 'No user found',
];
}
}