mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-03-31 15:07:47 +01:00
18 lines
634 B
PHP
18 lines
634 B
PHP
<?php
|
|
|
|
use App\Entity\Book;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
Route::get('/', function () {
|
|
// sweetalert()->timerProgressBar()->success('hello from Home Controller');
|
|
// noty()->layout('topCenter')->success('hello from Home Controller');
|
|
// notyf()->ripple(false)->warning('hello from Home Controller');
|
|
// 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'));
|
|
|
|
return view('welcome');
|
|
})->name('app_home');
|