demo: update laravel demo

This commit is contained in:
Younes ENNAJI
2024-05-23 10:32:25 +01:00
parent f34bd1385a
commit 3d893a68eb
2 changed files with 9 additions and 3 deletions
+5 -1
View File
@@ -4,6 +4,10 @@ return [
'inject_assets' => true,
'options' => [
'timeout' => 100_000,
'timeout' => 5_000,
],
'flash_bag' => [
'success' => ['success', 'ok', 'completed', 'passed', 'achieved'],
],
];
+4 -2
View File
@@ -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');