Files
parsaaghayi-backend/app/Http/Requests/Website/UpdateAboutMeRequest.php
T
DevOps 7ee8440a65
Deploy Backend / deploy (push) Waiting to run
Expose About Me translations and project categories for 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. Accept title_fa/title_en/description_fa/
description_en on both About Me form requests and write them through
setTranslation() for each locale.

Adds a read-only GET /api/website/project-categories endpoint backed by the
existing (previously unreachable) ProjectCategory model, so project forms can
offer a category picker.
2026-10-01 19:24:00 +00:00

24 lines
555 B
PHP

<?php
namespace App\Http\Requests\Website;
use Illuminate\Foundation\Http\FormRequest;
class UpdateAboutMeRequest extends FormRequest
{
public function authorize(): bool
{
return true;
}
public function rules(): array
{
return [
'image' => 'sometimes|required|string|max:255',
'title_fa' => 'nullable|string|max:255',
'title_en' => 'nullable|string|max:255',
'description_fa' => 'nullable|string',
'description_en' => 'nullable|string',
];
}
}