PHPackages                             queued/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. [Mail &amp; Notifications](/categories/mail)
4. /
5. queued/toasts

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

queued/toasts
=============

Toast notifications made simple, with easy installation and configuration for Laravel 5.5+

1.9(7y ago)29MITPHPPHP &gt;=7.1.0

Since Apr 2Pushed 7y ago1 watchersCompare

[ Source](https://github.com/queued/toasts)[ Packagist](https://packagist.org/packages/queued/toasts)[ RSS](/packages/queued-toasts/feed)WikiDiscussions master Synced 3d ago

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

Easy Toasts Notifications For Your Laravel App
==============================================

[](#easy-toasts-notifications-for-your-laravel-app)

This package is adapted from `laracasts/flash` by Jeffrey Way. Display alerts in a fancy way. Toasts are a great way of informing users of a server side action.

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

[](#installation)

Begin by pulling in the package through Composer.

```
composer require queued/toasts
```

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

```

```

```

```

Usage
-----

[](#usage)

Put the necessary script call somewhere in your project. Either in your Blade file, or in your scripts file

```
$('.toast').toast('show');
```

Make sure you include the view in your Blade Template

```
@include('toast::message')
```

Then, within your controllers, before you perform a redirect, make a call to the `toast()` function.

```
// example function in your controller
public function create()
{
    toast('Your post was created!');
    return back();
}
```

The toast method accepts the title and level optional arguments :

```
/*
 * Level can be one of the following:
 *   'success'
 *   'error'
 *   'warning'
 *   'info'
 */
toast('message', 'level', 'title');
```

There are a few quick methods to modify the toast:

- `toast('Message')->success()`: Set the toast theme to "success".
- `toast('Message')->normal()`: A normal toast. (default)
- `toast('Message')->error()`: Set the toast theme to "danger".
- `toast('Message')->warning()`: Set the toast theme to "warning".
- `toast('Message')->info()`: Set the toast theme to "info".
- `toast('Message')->dark()`: Set the toast theme to "dark".
- `toast('Message')->primary()`: Set the toast theme to "primary".
- `toast('Message')->important()`: Add a close button to the toast.
- `toast('Message')->title('Toast title')`: Set the toast title.
- `toast('Message')->time('just now')`: Set the toast time in the right side of the header
- `toast('Message')->error()->important()`: Render a "danger" toast message that must be dismissed.

Example
-------

[](#example)

```
>

    Document

    @include('toast::message')

    Welcome to my website...

    $('.toast').toast('show');

```

```
toast('Welcome Aboard!');

return home();
```

```
toast('Sorry! Please try again.')->error();

return home();
```

```
toast()->overlay('You are now a Laracasts member!', 'Yay');

return home();
```

Multiple Toasts
---------------

[](#multiple-toasts)

Need to flash multiple toasts to the session? No problem.

```
toast('Message 1');
toast('Message 2')->important();

return redirect('somewhere');
```

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

[](#configuration--personalization)

You can publish this package to change some configuration defaults and the views.

```
php artisan vendor:publish --provider="Queued\Toasts\ToastServiceProvider"
```

The package view will now be located in the `resources/views/vendor/toast/` directory, and the config will be in `config/toasts.php`.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

10

Last Release

2647d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8d453489a8bef2aba7d07c03452e2fc852fa3703b0b728a96f7f08e6ec514b36?d=identicon)[queued](/maintainers/queued)

---

Top Contributors

[![queued](https://avatars.githubusercontent.com/u/1345234?v=4)](https://github.com/queued "queued (14 commits)")

### Embed Badge

![Health badge](/badges/queued-toasts/health.svg)

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

###  Alternatives

[propaganistas/laravel-disposable-email

Disposable email validator

6023.0M7](/packages/propaganistas-laravel-disposable-email)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M341](/packages/psalm-plugin-laravel)[illuminate/mail

The Illuminate Mail package.

5910.6M484](/packages/illuminate-mail)[illuminate/notifications

The Illuminate Notifications package.

513.1M1.1k](/packages/illuminate-notifications)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

254168.5k](/packages/erag-laravel-disposable-email)

PHPackages © 2026

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