Skip to content

Open-source social media scheduler built for AI agents and the teams behind them. Create, schedule and publish posts to every network through MCP or the REST API, or write them yourself in a composer your team will love.

refactor(posts): drop hardcoded English validation messages

Paulo Castellanob322a7074f3e
diff --git a/app/Http/Requests/App/Post/UpdatePostRequest.php b/app/Http/Requests/App/Post/UpdatePostRequest.php
index d5d981191..d0de76405 100644
--- a/app/Http/Requests/App/Post/UpdatePostRequest.php
+++ b/app/Http/Requests/App/Post/UpdatePostRequest.php
@@ -72,16 +72,6 @@ class UpdatePostRequest extends FormRequest
];
}
- public function messages(): array
- {
- return [
- 'status.required' => 'The post status is required.',
- 'status.in' => 'Invalid post status.',
- 'platforms.*.content_type.in' => 'Invalid content type.',
- 'scheduled_at.after' => 'The scheduled date must be in the future.',
- ];
- }
-
public function withValidator(Validator $validator): void
{
$validator->after(function ($validator): void {