PHP code example of duxet / flash

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

    

duxet / flash example snippets


'providers' => [
    'Laracasts\Flash\FlashServiceProvider'
];

'aliases' => [
    'Flash' => 'Laracasts\Flash\Flash'
];

public function store()
{
    Flash::message('Welcome Aboard!');

    return Redirect::home();
}

Flash::message('Welcome aboard!');

return Redirect::home();

Flash::error('Sorry! Please try again.');

return Redirect::home();

Flash::overlay('You are now a Laracasts member!');

return Redirect::home();
bash
php artisan vendor:publish