Commit Graph
6 Commits
Author SHA1 Message Date
Parsa Aghayi 5e6647d812 feat(projects): add description to API response and update seeders with real portfolio projects
Deploy Backend / deploy (push) Successful in 1m17s
2026-11-02 11:39:20 +00:00
Parsa Aghayi c2960c4ed0 Filter projects by category id and expose category_id
Deploy Backend / deploy (push) Successful in 2m44s
2026-10-04 05:32:23 +00:00
Parsa Aghayi 3f386c7be8 Add the admin content API the CMS needs
Two gaps blocked building the admin panel:

About-me writes could only set the image. Title and description live in the
JSON translations column and were unreachable from the API, so the homepage
bio could never be edited through the app. Accept title_fa/title_en/
description_fa/description_en on both About Me form requests and write them
per locale through setTranslation().

Editing also needs raw rows. The public project and about-me endpoints only
return display-oriented payloads - one translated title, reshaped image
arrays, no second locale - which is not enough to populate a form. Add
GET /api/admin/resources/{resource} behind the same auth:sanctum + admin
middleware as the write routes, returning stored rows including every locale,
plus a public GET /api/website/project-categories so project forms have a
category picker.

Covered by AdminResourceReadTest: anonymous and non-admin callers are
rejected for every resource, unknown resource names 404, and project rows
expose both locales.
2026-10-01 15:28:23 -04:00
parsa aghaei afb202f333 3.1-3.6: install l5-swagger, add @OA annotations to all controllers 2026-06-23 18:34:20 +03:30
parsa aghaei db7ce880a0 2.1-2.4: install spatie/laravel-translatable, migrate to JSON, update models & controllers 2026-06-23 18:31:51 +03:30
parsa aghaei 28c7a317e5 1.2: restructure controllers to Api/ prefix and update routes 2026-06-23 18:09:15 +03:30