PHP code example of ez-laravel / flash-messages
1. Go to this page and download the library: Download ez-laravel/flash-messages 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/ */
ez-laravel / flash-messages example snippets
// Message with level 'info'
flash('Your message');
// Message with level 'success'
flash('Your message')->success();
// Message with level 'error'
flash('Your message')->error();
// Message with level 'warning'
flash('Your message')->warning();
// Overlay (modal) with default title and custom message
flash('Your message')->overlay();
// Overlay (modal) with custom title and message
flash()->overlay('Your message', 'Your title');
// Message with level 'info' which is important (so it gets a warning icon)
flash('Your message')->important();
php artisan vendor:publish --provider=EZ\FlashMessages\FlashServiceProvider --tag=vue
php artisan vendor:publish --provider=EZ\FlashMessages\FlashServiceProvider --tag=views