PHP code example of thomaswardiii / laravel-flash-foundation
1. Go to this page and download the library: Download thomaswardiii/laravel-flash-foundation 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/ */
thomaswardiii / laravel-flash-foundation 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