PHPackages                             eelcol/laravel-bootstrap-alerts - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. eelcol/laravel-bootstrap-alerts

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

eelcol/laravel-bootstrap-alerts
===============================

Easily implement alert messages in your Bootstrap design using Laravel.

1.0.9(2y ago)17.4k↓48.9%[1 issues](https://github.com/eelcol/laravel-bootstrap-alerts/issues)MITPHPPHP ^8.0

Since Jul 11Pushed 2y ago1 watchersCompare

[ Source](https://github.com/eelcol/laravel-bootstrap-alerts)[ Packagist](https://packagist.org/packages/eelcol/laravel-bootstrap-alerts)[ RSS](/packages/eelcol-laravel-bootstrap-alerts/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (12)Used By (0)

Laravel Bootstrap Alerts
========================

[](#laravel-bootstrap-alerts)

One of the tasks I do repeatedly, is displaying Bootstrap success messages and alert messages. This is why I created this package. I want to easily display messages when a form is submitted, when a task is completed and in lots of other situations.

Ofcourse I can do something like this:

```
return redirect()->back()->with(['message' => 'A message to display']);

```

However, I wanted to create a different solution for this. This enables me, for example, to add multiple alerts in different parts of the code.

Example
=======

[](#example)

I have included the 3 types of Bootstrap alerts I use the most: danger (for alerts), success (for success messages) and info (obviously for informational messages). With this package, I can easily do the following:

```
success('A success message');
error('An error message');
info('An info message');

```

If you already use the `success`, `error` or `info` functions elsewhere in the code, I can also do the following:

```
