PHP code example of mercuryseries / flashy

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

    

mercuryseries / flashy example snippets


'providers' => [
    MercurySeries\Flashy\FlashyServiceProvider::class,
];

'aliases' => [
    'Flashy' => MercurySeries\Flashy\Flashy::class,
];

public function store()
{
    Flashy::message('Welcome Aboard!', 'http://your-awesome-link.com');

    return Redirect::home();
}

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

    flashy()->success('You have been logged out.', 'http://your-awesome-link.com');

    return home();
}

Flashy::message('Welcome aboard!', 'http://your-awesome-link.com');

return Redirect::home();

Flashy::error('Sorry! Please try again.', 'http://your-awesome-link.com');

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