PHP code example of neodc / flash

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

    

neodc / flash example snippets


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

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

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

    return Redirect::home();
}

/**
 * Destroy the user's session (logout).
 *
 * @return Response
 */
public function destroy()
{
    Auth::logout();

    flash()->success('You have been logged out.');

    return home();
}