PHP code example of larapac / flash
1. Go to this page and download the library: Download larapac/flash 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/ */
larapac / flash example snippets
flash('Some info message');
flash('Info level message');
flash()->info('Info level message two');
flash()->success('Success level message');
flash()->warning('Warning level message');
flash()->warning('Warning level message two');
flash()->danger('Danger level message');
flash()->error('Danger level message from alias method');
//use array
flash()->info('Message', ['important' => true, 'timeout' => 3]);
//fluent style
flash()->info('Message')->important()->timeout(3);