2017 © Pedro Peláez
 

library sweet-notify

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

image

rukhsar/sweet-notify

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

  • Monday, December 5, 2016
  • by Rukhsar
  • Repository
  • 1 Watchers
  • 1 Stars
  • 120 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 2 % Grown

The README.md

Laravel SweetNotify

Add Sweet Alert notifications to Laravel application with ease., (*1)

Installation

Install using composer, (*2)

composer require rukhsar/sweet-notify

After installing this package you have to add the service provider for this package to your config/app.php ., (*3)


Rukhsar\SweetNotify\SweetNotifyServiceProvider::class

Copy the required assets by using, (*4)

php artisan vendor:publish --tag=sweetnotify

This will copy the sweetalert.css and sweetalert.js to your public/css and public/js., (*5)

Then in your master view or layout add, (*6)

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

and the JS script tag before your </body>, (*7)

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

Include the SweetNotify template in your main view or layout file right after the script tag above., (*8)

    @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., (*9)

Following methods are available to use., (*10)


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., (*11)

Thanks to

Sweet Alert - http://t4t5.github.io/sweetalert/, (*12)

The Versions

05/12 2016

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

 

by Rukhsar Manzoor

05/12 2016

v1.0

1.0.0.0

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

  Sources   Download

MIT

The Requires

 

by Rukhsar Manzoor