1. Go to this page and download the library: Download xuzh/toastr_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/ */
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();
}