PHP code example of dev-promtheus98 / flashy

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

    

dev-promtheus98 / flashy example snippets


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