F
Filament9mo ago
Nicole

Any idea how can I create toast notification similar to the attached image?

No description
6 Replies
toeknee
toeknee9mo ago
Why use toast when you ca use filament notifications?
Nicole
NicoleOP9mo ago
s there any? Can I customize it as well to look like that?
Dennis Koch
Dennis Koch9mo ago
What you are showing does look like a Filament Notification. Check the notification docs.
Nicole
NicoleOP9mo ago
Dennis Koch
Dennis Koch9mo ago
Yes. It’s installed by default though inside the panel.
Nicole
NicoleOP9mo ago
Hello Is there any way I can copy a text when click a button?
Notification::make()
->title('Saved successfully')
->success()
->body('Changes to the post have been saved.')
->actions([
Action::make('view')
->button()
->url(route('posts.show', $post), shouldOpenInNewTab: true),
Action::make('copyText')
->color('gray')
->dispatch(''),
])
->send();
Notification::make()
->title('Saved successfully')
->success()
->body('Changes to the post have been saved.')
->actions([
Action::make('view')
->button()
->url(route('posts.show', $post), shouldOpenInNewTab: true),
Action::make('copyText')
->color('gray')
->dispatch(''),
])
->send();

Did you find this page helpful?