-
Notifications
You must be signed in to change notification settings - Fork 4
Message
Emeka Mbah edited this page May 20, 2023
·
3 revisions
The message alert is the default alert, and very useful for displaying informational messages.
The message alert has lots of helpful methods that makes it easy to use
If you prefer to add a title to message, call the title method
In the application
Alert::message('Your order has been placed')
->title('Order')
->flash();
In the blade
<x-alert-message />
The message level is the color of the message body.
Alert::message(...)->primary();
Alert::message(...)->secondary();
Alert::message(...)->success();
Alert::message(...)->info();
Alert::message(...)->error();
Alert::message(...)->warning();
Alert::message(...)->light();
Alert::message(...)->dark();
In the application
Alert::message('Your order has been processed')
->title('Order')
->success()
->flash();
Result