PHPackages                             acatech/toastable - 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. acatech/toastable

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

acatech/toastable
=================

Toast notifications for Laravel

v1.0.0(2y ago)320MITPHPPHP &gt;=7.0

Since Aug 16Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Acatech-LLC/Toastable)[ Packagist](https://packagist.org/packages/acatech/toastable)[ RSS](/packages/acatech-toastable/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Laravel Toastable Notifications Package
=======================================

[](#laravel-toastable-notifications-package)

Copyright
=========

[](#copyright)

Inspired by [Jeffrey Way's Flash Package](https://github.com/laracasts/flash). Added following Jeffrey Ωmega's request.

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

[](#installation)

### You like text ?

[](#you-like-text-)

First, pull in the package through Composer.

Run `composer require acatech/toastable`

And then, if using Laravel 5, include the service provider within `config/app.php`.

```
'providers' => [
    Acatech\Toastable\ToastableServiceProvider::class,
];
```

And, for convenience, add a facade alias to this same file at the bottom:

```
'aliases' => [
    'Toastable' => Acatech\Toastable\Toastable::class,
];
```

Usage
-----

[](#usage)

Within your controllers, before you perform a redirect...

```
public function store()
{
    Toastable::message('hello guys', 'http://your-awesome-link.com');

    return Redirect::home();
}
```

You may also do:

- `Toastable::info('Message', 'http://your-awesome-link.com')`
- `Toastable::success('Message', 'http://your-awesome-link.com')`
- `Toastable::error('Message', 'http://your-awesome-link.com')`
- `Toastable::warning('Message', 'http://your-awesome-link.com')`
- `Toastable::primary('Message', 'http://your-awesome-link.com')`
- `Toastable::primaryDark('Message', 'http://your-awesome-link.com')`
- `Toastable::muted('Message', 'http://your-awesome-link.com')`
- `Toastable::mutedDark('Message', 'http://your-awesome-link.com')`

Again, if using Laravel, this will set a few keys in the session:

- 'toastable\_notification.message' - The message you're flashing
- 'toastable\_notification.type' - A string that represents the type of notification (good for applying HTML class names)
- 'toastable\_notification.link' - The URL to redirect to on click

Alternatively, again, if you're using Laravel, you may reference the `toastable()` helper function, instead of the facade. Here's an example:

```
/**
 * Destroy the user's session (logout).
 *
 * @return Response
 */
public function destroy()
{
    Auth::logout();

    toastable()->success('You have been logged out.', 'http://your-awesome-link.com');

    return home();
}
```

Or, for a general information flash, just do: `toastable('Some message', 'http://your-awesome-link.com');`.

With this message flashed to the session, you may now display it in your view(s). Maybe something like:

```
@if(Session::has('toastable_notification.message'))

        speaker_notes

    toastable("{{ Session::get('toastable_notification.message') }}", "{{ Session::get('toastable_notification.link') }}");

@endif
```

Because flash messages are so common, if you want, you may use (or modify) the views that are included with this package. Simply append to your layout view:

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

> Note that this package has jQuery has dependency. It's also better to load toastable before your body close tag.

Example
-------

[](#example)

```
>

    Document

    Welcome to my website...

@include('toastable::message')

```

If you need to modify the flash message partials, you can run:

```
php artisan vendor:publish
```

The two package views will now be located in the `app/views/packages/acatech/toastable/` directory.

```
Toastable::message('Welcome aboard!', 'http://your-awesome-link.com');

return Redirect::home();
```

```
Toastable::error('Sorry! Please try again.', 'http://your-awesome-link.com');

return Redirect::home();
```

Nice rendering
--------------

[](#nice-rendering)

For a nice rendering you may include these lines in your head:

```

```

and override the following sections of the default toastable view:

```

.toastable {
    font-family: "Source Sans Pro", Arial, sans-serif;
    padding: 11px 30px;
    border-radius: 4px;
    font-weight: 400;
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 16px;
    color: #fff;
}

        speaker_notes

```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

1052d ago

### Community

Maintainers

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

---

Top Contributors

[![Piscarocarlos](https://avatars.githubusercontent.com/u/35196214?v=4)](https://github.com/Piscarocarlos "Piscarocarlos (6 commits)")

---

Tags

toasttoast-notifications

### Embed Badge

![Health badge](/badges/acatech-toastable/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9349.2M280](/packages/illuminate-pipeline)[illuminate/redis

The Illuminate Redis package.

8314.6M374](/packages/illuminate-redis)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)

PHPackages © 2026

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