PHPackages                             prajwal89/lara-toast - 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. prajwal89/lara-toast

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

prajwal89/lara-toast
====================

lightweight toast notification package for laravel

v0.1.1(1y ago)184[3 issues](https://github.com/prajwal89/lara-toast/issues)1MITPHPPHP ~8.0

Since Dec 26Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/prajwal89/lara-toast)[ Packagist](https://packagist.org/packages/prajwal89/lara-toast)[ RSS](/packages/prajwal89-lara-toast/feed)WikiDiscussions main Synced 1mo ago

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

LaraToasts - Elegant Toast Notifications for Laravel
====================================================

[](#laratoasts---elegant-toast-notifications-for-laravel)

A simple, lightweight package for displaying toast notifications in your Laravel applications with zero dependencies.

[![Screenshot](https://raw.githubusercontent.com/prajwal89/lara-toast/refs/heads/main/screenshots/toasts.png)](https://raw.githubusercontent.com/prajwal89/lara-toast/refs/heads/main/screenshots/toasts.png)

Features
--------

[](#features)

- 🚀 Zero dependencies
- 🎨 Clean and modern design
- 🔧 Easy to integrate
- 📱 Fully responsive
- ⚡ Lightweight
- 🎯 Three notification types: success, info, and danger

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

[](#installation)

Install the package via composer:

```
composer require prajwal89/lara-toast
```

Usage
-----

[](#usage)

### 1. Include Required Assets

[](#1-include-required-assets)

Add these Blade directives in your layout file (typically in `layouts/app.blade.php`):

```
DOCTYPE html>

    @laraToastCSS

    @include('lara-toasts::toast')

    @laraToastJs

```

### 2. Publish Frontend Assets

[](#2-publish-frontend-assets)

```
php artisan vendor:publish --tag=lara-toast-assets
```

### 3. Show Notifications

[](#3-show-notifications)

You can trigger toasts using the following methods:

```
// Success notification
laraToast()->success('Success!', 'Operation completed successfully');

// Info notification
laraToast()->info('Info', 'Here is some information');

// Danger notification
laraToast()->danger('Error!', 'Something went wrong');
```

### Method Parameters

[](#method-parameters)

All notification methods accept the following parameters:

```
laraToast()->success(
    string $title,                    // Required: Toast title
    string $description = null,       // Optional: Toast description
    int $autoCloseInMs = 5000        // Optional: Auto-close duration (default: 5000ms)
);
```

Examples
--------

[](#examples)

```
// Basic usage
laraToast()->success('Success!', 'Your changes have been saved.');

// With custom duration
laraToast()->info('Processing', 'Please wait while we process your request.', 3000);

// Error notification
laraToast()->danger('Error!', 'Unable to connect to the server.');

// Persistent Notification
laraToast()->danger('Error!', 'Persistent Message')->persistent();
```

License
-------

[](#license)

This package is open-sourced software licensed under the MIT license.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity36

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

Every ~52 days

Total

3

Last Release

398d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3eb26ed1148ea7d71ba384fe0e1a08f01dc17fb0ec09058cd8d8b60aec3d6afc?d=identicon)[prajwal89](/maintainers/prajwal89)

---

Top Contributors

[![prajwal89](https://avatars.githubusercontent.com/u/22263436?v=4)](https://github.com/prajwal89 "prajwal89 (19 commits)")

---

Tags

messagelaravelnotificationalerttoast

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/prajwal89-lara-toast/health.svg)

```
[![Health](https://phpackages.com/badges/prajwal89-lara-toast/health.svg)](https://phpackages.com/packages/prajwal89-lara-toast)
```

###  Alternatives

[mckenziearts/laravel-notify

Flexible flash notifications for Laravel

1.7k1.1M5](/packages/mckenziearts-laravel-notify)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[loveorigami/yii2-notification-wrapper

This module for renders a message from session flash (with ajax, pjax support and etc.)

77199.7k5](/packages/loveorigami-yii2-notification-wrapper)[gr8shivam/laravel-sms-api

A modern, flexible Laravel package for integrating any SMS gateway with REST API support

10138.4k](/packages/gr8shivam-laravel-sms-api)[bpocallaghan/alert

A helper package to flash a bootstrap alert to the browser.

1819.6k3](/packages/bpocallaghan-alert)[ghanem/laravel-smsmisr

Send SMS and SMS Notification via SMS Misr for Laravel

194.8k](/packages/ghanem-laravel-smsmisr)

PHPackages © 2026

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