feat(projects): add description to API response and update seeders with real portfolio projects
Deploy Backend / deploy (push) Successful in 1m17s

This commit is contained in:
Parsa Aghayi committed 2026-11-02 11:39:20 +00:00
1 parent 3fb1e417c6
commit 5e6647d812
3 files changed
+254 -36

No files matched your search

@@ -50,6 +50,7 @@ class ProjectController extends Controller
return [
'id' => $project->id,
'title' => $project->getTranslation('title', $locale),
'description' => $project->getTranslation('description', $locale),
'category' => $project->category?->getTranslation('title', $locale),
'category_id' => $project->category_id,
'images' => [
@@ -117,6 +118,7 @@ class ProjectController extends Controller
$formattedProject = [
'id' => $project->id,
'title' => $project->getTranslation('title', $locale),
'description' => $project->getTranslation('description', $locale),
'category' => $project->category?->getTranslation('title', $locale),
'category_id' => $project->category_id,
'images' => [