Laravel Bootstrap Alert macro

Laravel allowing us to extend the HTML facade with additional functionality. we use the HTML::macro() method to extend the HTML facade with our own methods.So here is the Twitter Bootstrap alert macro.

Place the below macro code into your app/start/global.php file to register it.

How to use

Then place place this code in your blade template.

With Default head

With custom head

Without head

I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face - we are here to solve your problems.

0 0 vote
Article Rating
Notify of
Inline Feedbacks
View all comments Protection Status
Would love your thoughts, please comment.x