moathdev/sweetalert

A Sweet Alert package for Laravel 5.2
252 10
Install
composer require moathdev/sweetalert
Latest Version:1.0.3
PHP:>=5.5.0
License:MIT
Last Updated:Sep 5, 2019
Links: GitHub  ·  Packagist
Maintainer: moathdev

Laravel 5.2 SweetAlert

all appreciation to laracasts.com i just can't sleep ! so i created package :)

##Installation

composer require moathdev/sweetalert

After install this package you have to set the service provider on your config/app.php file

Moathdev\Sweetalert\SweetalertServiceProvider::class,

Then you just need to publish files ! Copy and paste it

php artisan vendor:publish --provider="Moathdev\Sweetalert\SweetalertServiceProvider"

Then in your master view add those styles and scripts. Put this style between the tags

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

Add the JS script and include flash view before close your tag.

        <script src="/js/sweetalert.min.js"></script>
        @include('Flash')
    </body>

###Usage

it's so Easy !


 flash('title','message','success',true);

 // there is 4 Types 1-warning 2-error 3-success 4-info

 // showConfirmButton yes = true no = false

###Issues

If you have any questions or issues, please open an Issue .

Related Packages

zaxx44a/laravel-user-management

With this package we can manage all of the users in our project.

60 0
ashfaq1701/laravel-chat

A Basic channel based chat implementation for laravel 5.2 or less

49 1
abr4xas/leadmin

A Panel for Laravel Projects

20 0
vyze/ghpb

A simple browser for github projects. Package for laravel 4

6 0