Skip to content
Emeka Mbah edited this page May 20, 2023 · 3 revisions

Message Alert

The message alert is the default alert, and very useful for displaying informational messages.

Features

The message alert has lots of helpful methods that makes it easy to use

Message title

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 />

Message levels

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();

Examples

In the application

   Alert::message('Your order has been processed')
   ->title('Order')
   ->success()
   ->flash();

Result

image
Clone this wiki locally