PHP code example of nashultz / flash

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

    

nashultz / flash example snippets


flash()->create($title = 'Custom', $message = 'Message Content', $level = 'info');

flash()->success('Success!', "You've successfully done something, congrats!");

flash()->info('Info!', "Just letting you know something informative.");

flash()->warning('Warning!', 'Hey watch out, somethings going on!');

flash()->error('Error!', "Uh oh, there was an error doing something!");

flash()->setTimer(5000)->success('Success!', 'This notification will disappear in five seconds.');