1. Go to this page and download the library: Download zaichaopan/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/ */
zaichaopan / flash example snippets
$request->session()->flash($key, $message);
// in your controller action method
return redirect()->with($key, $message);
// or take advantage of dynamically binding
return redirect()->withSuccess($message); // or withError, withWarning, ...
// generate a general info message
flash()->info($message, $options) ;
// generate a success message
flash()->success($message, $options);
// generate a warning message
flash()->warning($message, $options);
// generate a danger message
flash()->danger($message, $options);
// generate an error message
flash()->error($message, $options);
flash()->type();
flash()->message();
flash()->options();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.