2017 © Pedro Peláez
 

library laravel5-sweetalert

sweetalert.js for laravel5.2

image

lancewan/laravel5-sweetalert

sweetalert.js for laravel5.2

  • Saturday, April 2, 2016
  • by iwanli
  • Repository
  • 1 Watchers
  • 1 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

SweetAlert.js for laravel5

Quick Installation

Begin by installing the package through Composer., (*1)

composer require lancewan/laravel-sweetalert=~1.0

Or add this code to composer.json file:, (*2)

"lancewan/laravel5-sweetalert":"~1.0"

Once this operation is complete, simply add both the service provider and facade classes to your project's config/app.php file:, (*3)

Service Provider

Lance\Sweet\SweetAlertServiceProvider::class,

Facade

'Sweet' => Lance\Sweet\Facade\Sweet::class,

Run php artisan vendor:publish, (*4)

And that's it!, (*5)

Usage

Usage is simple. Before redirecting to another page, simply call on Flash to set your desired Sweet message. There are a number of methods to assign different levels of priority (info, success, warning, and error)., (*6)

Success

Sweet::success($message, $title = '', $options = []);

Info

Sweet::info($message, $title = '', $options = []);

Warning

Sweet::warning($message, $title = '', $options = []);

Error

Sweet::error($message, $title = '', $options = []);

Rendering

Just add this code to your blade template file:, (*7)

{!! Sweet::render() !!}

Config

set the sweetAlert options in config/sweet.php , available options => sweetAlert.js, (*8)

The Versions

02/04 2016

dev-master

9999999-dev

sweetalert.js for laravel5.2

  Sources   Download

MIT

The Requires

  • php >5.5.9

 

by Avatar iwanli

02/04 2016

v1.0.1

1.0.1.0

sweetalert.js for laravel5.2

  Sources   Download

MIT

The Requires

  • php >5.5.9

 

by Avatar iwanli

02/04 2016

1.0.0

1.0.0.0

sweetalert.js for laravel5.2

  Sources   Download

MIT

The Requires

  • php >5.5.9

 

by Avatar iwanli