F
Filament8mo ago
Nicole

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

No description
6 Replies
toeknee
toeknee8mo ago
Why use toast when you ca use filament notifications?
Nicole
NicoleOP8mo ago
s there any? Can I customize it as well to look like that?
Dennis Koch
Dennis Koch8mo ago
What you are showing does look like a Filament Notification. Check the notification docs.
Nicole
NicoleOP8mo ago
Dennis Koch
Dennis Koch8mo ago
Yes. It’s installed by default though inside the panel.
Nicole
NicoleOP8mo 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?