mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 15:07:47 +01:00
demo: update laravel demo
This commit is contained in:
@@ -4,6 +4,10 @@ return [
|
||||
'inject_assets' => true,
|
||||
|
||||
'options' => [
|
||||
'timeout' => 100_000,
|
||||
'timeout' => 5_000,
|
||||
],
|
||||
|
||||
'flash_bag' => [
|
||||
'success' => ['success', 'ok', 'completed', 'passed', 'achieved'],
|
||||
],
|
||||
];
|
||||
|
||||
@@ -10,8 +10,10 @@ Route::get('/', function () {
|
||||
// toastr()->positionClass('toast-bottom-left')->error('hello from Home Controller');
|
||||
// flash()->use('flasher')->success('hello from flasher factory');
|
||||
|
||||
flash()->created(new Book('lord of the rings'));
|
||||
flash()->saved(new Book('harry potter'));
|
||||
// flash()->created(new Book('lord of the rings'));
|
||||
// flash()->saved(new Book('harry potter'));
|
||||
|
||||
session()->flash('success', 'this from laravel session flash');
|
||||
|
||||
return view('welcome');
|
||||
})->name('app_home');
|
||||
|
||||
Reference in New Issue
Block a user