LaravelPackages.net
Acme Inc.
Toggle sidebar
php-flasher/flasher-laravel

Seamlessly integrate flash notifications into your Laravel applications with PHPFlasher. Enhance user feedback and engagement with minimal setup.

2.918.947
44
v2.6.1
About php-flasher/flasher-laravel

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

PHPFlasher Laravel Adapter

Latest Version Total Downloads License

Laravel framework adapter for PHPFlasher. Seamless integration with zero JavaScript setup.

Requirements

  • PHP >= 8.2
  • Laravel >= 11.0

Installation

composer require php-flasher/flasher-laravel

Run the install command:

php artisan flasher:install

Quick Start

// 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();
}

Configuration

Publish configuration file:

php artisan flasher:install --config

This creates config/flasher.php where you can customize:

  • Default adapter
  • Global options
  • Flash bag mapping
  • Presets

Documentation

Complete documentation: php-flasher.io

License

MIT

Star History Chart