Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Flasher Laravel Laravel Package

php-flasher/flasher-laravel

Laravel integration for PHP Flasher: add stylish flash notifications (success, error, info) to your app with an easy API, session support, and multiple adapters/themes. Quick to install, configurable, and works seamlessly with Laravel’s middleware and views.

View on GitHub
Deep Wiki
Context7

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

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4
php-http/client-implementation
phpcr/phpcr-implementation
cucumber/gherkin-monorepo
haydenpierce/class-finder
psr/simple-cache-implementation