2017 © Pedro Peláez
 

library sweetalert-laravel

Simple way to flash sweetalert messages to the screen for laravel.

image

raymondwilkinson/sweetalert-laravel

Simple way to flash sweetalert messages to the screen for laravel.

  • Tuesday, June 21, 2016
  • by RaymondWilkinson
  • Repository
  • 1 Watchers
  • 0 Stars
  • 915 Installations
  • CSS
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 15 % Grown

The README.md

Sweetalert-Laravel

Simple way to flash sweetalert messages to the screen for laravel., (*1)

Laravel 5.1 SweetAlert

Simple way to flash sweetalert messages to the screen for laravel., (*2)

Installation

composer require raymondwilkinson/sweetalert-laravel

After install this package you have to set the service provider on your config/app.php file, (*3)

RaymondWilkinson\SweetalertLaravel\AlertServiceProvider::class,

Copy the required assets of SweetAlert to your public folder. Those assets would be placed in the css and js directories respectively., (*4)

php artisan vendor:publish --tag=alerts

Then in your master view add those styles and scripts. Put this style between the , (*5)

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

Add the JS script before close your , (*6)

tag., (*7)

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

Include the alerts view to your master view. Add this code right after set the JS script file., (*8)

@include('Alerts::sweetalerts')

Usage

Your controllers are a perfect place to use it., (*9)

flash('Title', 'Message')


flash()->error('Title', 'Message')


flash()->success('Title', 'Message')


flash()->overlay('Title', 'Message')

SweetAlert website

http://t4t5.github.io/sweetalert/, (*10)

The Versions

21/06 2016

dev-master

9999999-dev

Simple way to flash sweetalert messages to the screen for laravel.

  Sources   Download

MIT

The Requires

 

by Raymond Wilkinson

laravel alerts sweetalert flash messages

21/06 2016

v1.0.3

1.0.3.0

Simple way to flash sweetalert messages to the screen for laravel.

  Sources   Download

MIT

The Requires

 

by Raymond Wilkinson

laravel alerts sweetalert flash messages

21/06 2016

v1.0.2

1.0.2.0

Simple way to flash sweetalert messages to the screen for laravel.

  Sources   Download

MIT

The Requires

 

by Raymond Wilkinson

laravel alerts sweetalert flash messages

21/06 2016

v1.0.1

1.0.1.0

Simple way to flash sweetalert messages to the screen for laravel.

  Sources   Download

MIT

The Requires

 

by Raymond Wilkinson

laravel alerts sweetalert flash messages

02/05 2016

v1.0.0

1.0.0.0

Simple way to flash sweetalert messages to the screen for laravel.

  Sources   Download

MIT

The Requires

 

by Raymond Wilkinson

laravel alerts sweetalert flash messages