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.
PHP ai-agentsblueskyfacebookinstagramlaravellinkedinmastodonmcpmcp-serveropen-sourcerest-apiself-hostedsocial-mediasocial-media-managementsocial-media-schedulerthreadstiktokvuejsxyoutube
<?php
declare(strict_types=1);
namespace App\Http\Requests\App\Post;
use App\Enums\Post\Status;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;
class StorePostRequest extends FormRequest
{
public function authorize(): bool
{
return true;
}
/**
* @return array<string, mixed>
*/
public function rules(): array
{
return [
'status' => ['required', Rule::in([Status::Draft->value, Status::Scheduled->value, Status::Publishing->value])],
'content' => ['sometimes', 'nullable', 'string'],
'media' => ['sometimes', 'array'],
'scheduled_at' => ['nullable', 'date'],
'queue' => ['nullable', 'string'],
'queue_slot' => ['nullable', 'date'],
'label_ids' => ['sometimes', 'array'],
'destinations' => ['required', 'array', 'min:1'],
'destinations.*.social_account_id' => ['required', 'uuid'],
'destinations.*.content_type' => ['required', 'string'],
'destinations.*.meta' => ['sometimes', 'array'],
'destinations.*.content' => ['sometimes', 'nullable', 'string'],
'destinations.*.media' => ['sometimes', 'array'],
'recover_post_id' => ['sometimes', 'uuid'],
];
}
}