1. Go to this page and download the library: Download tonning/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/ */
tonning / flash example snippets
return [
'display_errors' => true,
];
use Tonning\Flash\Flash;
Flash::info('A new software update is available. See what’s new in version 2.0.4.');
@if(flash()->hasAny())
{!! flash() !!}
@endif
use Tonning\Flash\Flash;
Flash::warning('Please confirm your email address.', 'Attention needed');
use Tonning\Flash\Flash;
Flash::warning('Facilisis himenaeos nullam habitasse lacus sem auctor.');
Flash::warning('Please confirm your email address.', 'Attention needed');
Flash::warning('Facilisis egestas fermentum porttitor sapien eleifend amet.');
throw ValidationException::withMessages(['Something went wrong.']);