Show toast messages sent from controllers.
resources/js/Components/FlashMessage.vue
return back()->with([ 'status' => __('User has been created.'), // Toast title 'status_description' => "Tony Stark ([email protected])", // Toast description 'status_type' => ResponseStatus::Success, // Toast status ]);
FlashMessage
Sonner
<Toaster position="bottom-right" offset="1rem" :duration="6000" />
<Toaster position="bottom-right" offset="1rem" :duration="6000" close-button />
<Toaster position="bottom-right" offset="1rem" :duration="6000" rich-colors />