Last updated 2 years ago
we have create a magic class for make a toster alert useing session() the class takes the message and the type and handle it on the frontend.
session()
To use the Alert class it easy at the end of any method you can clickable
Alert
return Alert::make(__('Your Message'))->type('success')->fire();
the method has 2 type success , danger to handle response
success
danger