PHP code example of seguce92 / alerts

1. Go to this page and download the library: Download seguce92/alerts 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/ */

    

seguce92 / alerts example snippets


'Seguce92\Alerts\AlertsServiceProvider',

'Alerts' => 'Seguce92\Alerts\Facades\Alert',

'icon'	=>	true,

'styling'	=>	'bootstrap3',

'delay'	=>	'8000',

'text_escape'	=>	false,

'shadow'	=>	false,

'opacity'	=>	1,

'desktop'	=>	false

Alert::info('description')->flash();

Alert::success('description')->flash();

Alert::warning('description')->flash();

Alert::error('description')->flash();

<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>

{!! Alerts::all() !!}
 bash
$ php artisan vendor:publish