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\Invite\Concerns;
trait ValidatesMemberAccess
{
/**
* @return array<string, list<string>>
*/
protected function memberAccessRules(): array
{
return [
'is_admin' => ['required', 'boolean'],
'requires_approval' => ['required', 'boolean'],
];
}
/**
* The membership flags to store: an admin never needs approval.
*
* @return array{is_admin: bool, requires_approval: bool}
*/
public function memberAccess(): array
{
$isAdmin = $this->boolean('is_admin');
return [
'is_admin' => $isAdmin,
'requires_approval' => ! $isAdmin && $this->boolean('requires_approval'),
];
}
}