This commit is contained in:
Saeed Vaziry
2025-05-19 22:22:21 +02:00
parent 04d52f6742
commit 61faaabb85
17 changed files with 544 additions and 92 deletions

View File

@ -0,0 +1,26 @@
<?php
namespace App\Http\Resources;
use App\Models\Tag;
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;
/** @mixin Tag */
class TagResource extends JsonResource
{
/**
* @return array<string, mixed>
*/
public function toArray(Request $request): array
{
return [
'id' => $this->id,
'project_id' => $this->project_id,
'name' => $this->name,
'color' => $this->color,
'created_at' => $this->created_at,
'updated_at' => $this->updated_at,
];
}
}