PHP code example of ankurk91 / laravel-alert
1. Go to this page and download the library: Download ankurk91/laravel-alert 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/ */
ankurk91 / laravel-alert example snippets
use Ankurk91\LaravelAlert\Facades\Alert;
Alert::error('Something went wrong.');
Alert::danger('I am same as error.');
Alert::success('Contact saved.');
Alert::warning('You are running late.');
Alert::info('Order dispatched.');
alert()->info('Use anywhere without facade.');
alert('You can use the <b>html</b> tags like this too.', 'danger');