F
Filament7mo ago
Nicole

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

No description
6 Replies
toeknee
toeknee7mo ago
Why use toast when you ca use filament notifications?
Nicole
NicoleOP7mo ago
s there any? Can I customize it as well to look like that?
Dennis Koch
Dennis Koch7mo ago
What you are showing does look like a Filament Notification. Check the notification docs.
Nicole
NicoleOP7mo ago
Dennis Koch
Dennis Koch7mo ago
Yes. It’s installed by default though inside the panel.
Nicole
NicoleOP7mo 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();
Want results from more Discord servers?
Add your server