first commit

This commit is contained in:
2025-11-06 06:55:15 +00:00
commit 0b603376d2
107 changed files with 17279 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
<?php
namespace App\Http\Resources;
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;
use App\Traits\ImageHelper;
class CategoryResource extends JsonResource
{
use ImageHelper;
public function toArray(Request $request): array
{
return [
'id' => $this->id,
'title' => $this->title,
'description' => $this->description,
'sortingIndex' => $this->sortingIndex,
'isActive' => $this->isActive,
'thumbnail' => $this->getFileFullUrl($this->thumbnail),
'created_at' => $this->created_at,
'updated_at' => $this->updated_at,
];
}
}