FilamentF
Filament8mo ago
1 reply
gg

I want to show modal after saving data for choosing that users go to listing page or edit page.

I also try afterCreate() but after Create not show modal box

protected function afterCreate(): void
{
$user = $this->record;

Action::make('User Created')
->modalDescription('Would you like to configure additional settings?')
->modalIconColor('success')
->form([
Action::make('skip')
->color('secondary')
->url(MerchantResource::getUrl('index')),

Action::make('setup')
->color('primary')
->url(MerchantResource::getUrl('edit', ['record' => $merchant])),
]);
}
Was this page helpful?