PHP code example of lancewan / laravel5-sweetalert

1. Go to this page and download the library: Download lancewan/laravel5-sweetalert library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

lancewan / laravel5-sweetalert example snippets


composer 

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

Lance\Sweet\SweetAlertServiceProvider::class,

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

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

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

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

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

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