raymondwilkinson/sweetalert-laravel
Simple way to flash sweetalert messages to the screen for laravel.
1,647
| Install | |
|---|---|
composer require raymondwilkinson/sweetalert-laravel |
|
| Latest Version: | v1.0.3 |
| License: | MIT |
| Last Updated: | Jun 21, 2016 |
| Links: | GitHub · Packagist |
Maintainer: RaymondWilkinson
Sweetalert-Laravel
Simple way to flash sweetalert messages to the screen for laravel.
Laravel 5.1 SweetAlert
Simple way to flash sweetalert messages to the screen for laravel.
##Installation
composer require raymondwilkinson/sweetalert-laravel
After install this package you have to set the service provider on your config/app.php file
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.
php artisan vendor:publish --tag=alerts
Then in your master view add those styles and scripts. Put this style between the
tags<link rel="stylesheet" type="text/css" href="css/sweetalert.css">
Add the JS script before close your