PHPackages                             whereislucas/laravel-bootstrap-toasts - 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. whereislucas/laravel-bootstrap-toasts

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

whereislucas/laravel-bootstrap-toasts
=====================================

Bootstrap Laravel Flash Messages

1.06(5y ago)2718.7k↓11.1%3[3 issues](https://github.com/WhereIsLucas/laravel-bootstrap-toasts/issues)MITPHPPHP &gt;=5.4.0CI failing

Since Nov 14Pushed 3y ago3 watchersCompare

[ Source](https://github.com/WhereIsLucas/laravel-bootstrap-toasts)[ Packagist](https://packagist.org/packages/whereislucas/laravel-bootstrap-toasts)[ RSS](/packages/whereislucas-laravel-bootstrap-toasts/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (3)Versions (6)Used By (0)

Bootstrap flash messages for your Laravel app
=============================================

[](#bootstrap-flash-messages-for-your-laravel-app)

This package, based on `laracasts/flash` provides an interface for Bootstrap 4.2 toast messages.

Installation
------------

[](#installation)

Get the package with composer

```
composer require whereislucas/laravel-bootstrap-toasts
```

If you are not using Laravel 5.5 or higher, include the service provider within your `config/app.php` file.

```
'providers' => [
    WhereIsLucas\LaravelBootstrapToasts\ToastServiceProvider::class,
];
```

This package is made for Bootstrap 4.2 and higher, be sure to include the css and js files on your page.

```

```

```

```

Usage
-----

[](#usage)

First of all, include the snippet in your Blade templates

```
@include('laravel-bootstrap-toasts::message')
```

Then, in your controller, call the `toast()` method to create a toast message.

```
public function edit()
{
    toast('Post edited!');
    return redirect(route('posts.list'));
}
```

The toast method accepts the title and level optional arguments :

```
toast('message','level','title')
```

There are a few quick methods to modify the toast:

- `toast('Message')->success()`: Set the toast level as "success".
- `toast('Message')->info()`: Set the toast level as "info".
- `toast('Message')->error()`: Set the toast level as "danger".
- `toast('Message')->warning()`: Set the toast level as "warning".
- `toast('Message')->title("Toast title")`: Set the toast title.
- `toast('Message')->important()`: Add a close button to the toast.

Configuration &amp; personalization
-----------------------------------

[](#configuration--personalization)

You can publish the configuration file to tweak the position of the toast or the default value for 'autohide'.

```
php artisan vendor:publish --provider="WhereIsLucas\LaravelBootstrapToasts\ToastServiceProvider" --tag="config"
```

You can publish the view and tweak it if you want!

```
php artisan vendor:publish --provider="WhereIsLucas\LaravelBootstrapToasts\ToastServiceProvider" --tag="views"
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~86 days

Total

5

Last Release

2024d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bde7d19994372b4f959bc78beb3040c1b08d7ebb6f035304e9cca9d144823062?d=identicon)[WhereIsLucas](/maintainers/WhereIsLucas)

---

Top Contributors

[![WhereIsLucas](https://avatars.githubusercontent.com/u/25830895?v=4)](https://github.com/WhereIsLucas "WhereIsLucas (6 commits)")[![kyranb](https://avatars.githubusercontent.com/u/5426926?v=4)](https://github.com/kyranb "kyranb (2 commits)")[![jtrod](https://avatars.githubusercontent.com/u/11953328?v=4)](https://github.com/jtrod "jtrod (1 commits)")

---

Tags

bootstrap-4bootstrap4laravellaravel5toasts

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/whereislucas-laravel-bootstrap-toasts/health.svg)

```
[![Health](https://phpackages.com/badges/whereislucas-laravel-bootstrap-toasts/health.svg)](https://phpackages.com/packages/whereislucas-laravel-bootstrap-toasts)
```

###  Alternatives

[wireui/wireui

TallStack components

1.8k1.3M16](/packages/wireui-wireui)[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4195.3M84](/packages/livewire-volt)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21147.4k](/packages/ramonrietdijk-livewire-tables)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
