English
English
Appearance
English
English
Appearance
The FollowerAction class is a Filament action designed for adding followers to a record within the Webkul Chatter module. This action allows users to select multiple partners as followers, optionally send them notifications, and include a note in the notification email.
$mailView 'chatter::mail.follower-mail'$resource setResource(string $resource): self setFollowerMailView(?string $mailView): self getFollowerMailView(): string getResource(): string setUp Method) The setUp method defines how this action behaves in Filament.
heroicon-s-user for the button and heroicon-s-user-plus for the modal.MaxWidth::TwoExtraLarge for a large modal.Select::make('partners')followable → name).Toggle::make('notify')RichEditor::make('note')notify is enabled.chatter::filament.actions.follower-action) to customize the modal footer.When the action is triggered, the following happens:
notify toggle is enabled.notifyFollower(Model $record, Partner $partner, array $data) EmailService to send an email using the configured mail view.preparePayload method’s output as the email data.prepareResourceUrl(mixed $record): string preparePayload(Model $record, Partner $partner, $data): array