New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

rukhsar/sweet-notify

A simple laravel package to show Sweet Alert notifications in blade templates.
144 1

Larablocks Analysis

rukhsar/sweet-notify works with Laravel 5 (latest release v1.0, Dec 5, 2016), which reached end of life: no more fixes, even for security.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • Supports only Laravel 5, past end of life
  • No release in the last 12 months (last: Dec 5, 2016)
  • 0 downloads a month (needs 10,000)
  • 1 GitHub star (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Dec 5, 2016.
  • No releases in the last 12 months.
  • First released: Dec 5, 2016.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 4, 2026.

Install
composer require rukhsar/sweet-notify
Latest Version:v1.0
PHP:>=5.4.0
Laravel:5
License:MIT
Last Updated:Dec 5, 2016
Links: GitHub  ·  Packagist
Maintainer: Rukhsar

Laravel SweetNotify

Add Sweet Alert notifications to Laravel application with ease.

Installation

Install using composer

composer require rukhsar/sweet-notify

After installing this package you have to add the service provider for this package to your config/app.php .


Rukhsar\SweetNotify\SweetNotifyServiceProvider::class

Copy the required assets by using

php artisan vendor:publish --tag=sweetnotify

This will copy the sweetalert.css and sweetalert.js to your public/css and public/js.

Then in your master view or layout add

<link rel="stylesheet" type="text/css" href="css/sweetalert.css">

and the JS script tag before your </body>

<script src="js/sweetalert.js"></script>

Include the SweetNotify template in your main view or layout file right after the script tag above.

    @include('SweetNotify::sweetnotify')

Usage

You can use SweetNotify notifications in you controllers, events and jobs. But I prefer to use them in controller just before redirecting to a view.

Following methods are available to use.


sweet('Title','Your Message');

sweet()->error('Title','Your Message');

sweet()->success('Title','Your Message');

sweet()->overlay('Title','Your Message');

Issues

If you have any question or issue, please open an Issue and I will try to fix it as soon as possible.

Thanks to

Sweet Alert - http://t4t5.github.io/sweetalert/

Related Packages

tightenco/ziggy

Use your Laravel named routes in JavaScript.

65,190,656 4,313
spatie/shiki-php

Highlight code using Shiki in PHP

41,818,186 315
malzariey/filament-daterangepicker-filter

This package uses daterangepciker library to filter date by a range or predefine...

3,677,842 177
mpociot/documentarian
3,418,790 374
emilianotisato/nova-tinymce

This Nova package allow you to use TinyMCE editor for text areas.You can customi...

1,072,476 116

Version History

Version Released PHP Laravel License
v1.0 >=5.4.0 >=5.2 MIT