F
Filament14mo ago
Phuc Le

Notification not shown

I am using the Notification & Table as a standalone package for my existing project. I tried to show a notification on the Delete action, but nothing is being displayed. I have already published all the assets of the Notification & Table in the vendor folder. Do I need to include a view somewhere?
$table->actions([
Action::make('delete')
->icon('heroicon-m-trash')
->color('danger')
->requiresConfirmation()
->modalHeading('Delete')
->action(function (Product $record) {
Notification::make()
->title('Saved successfully')
->success()
->send();
})
])
$table->actions([
Action::make('delete')
->icon('heroicon-m-trash')
->color('danger')
->requiresConfirmation()
->modalHeading('Delete')
->action(function (Product $record) {
Notification::make()
->title('Saved successfully')
->success()
->send();
})
])
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server