Seamlessly integrate flash notifications into your Laravel applications with PHPFlasher. Enhance user feedback and engagement with minimal setup.
php-flasher/flasher-laravel is a Laravel package for seamlessly integrate flash notifications into your laravel applications with phpflasher. enhance user feedback and engagement with minimal setup..
It currently has 44 GitHub stars and 2.918.947 downloads on Packagist (latest version v2.6.1).
Install it with composer require php-flasher/flasher-laravel.
Discover more Laravel packages by php-flasher
or browse all Laravel packages to compare alternatives.
Last updated
Laravel framework adapter for PHPFlasher. Seamless integration with zero JavaScript setup.
composer require php-flasher/flasher-laravel
Run the install command:
php artisan flasher:install
// Success notification
flash()->success('Operation completed successfully!');
// Error notification
flash()->error('An error occurred.');
// With options
flash()->success('Profile updated!', [
'timeout' => 5000,
'position' => 'top-right',
]);
// In controller
public function update(Request $request)
{
// Your logic...
flash()->success('Changes saved!');
return redirect()->back();
}
Publish configuration file:
php artisan flasher:install --config
This creates config/flasher.php where you can customize:
Complete documentation: php-flasher.io