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

Flare Laravel Package

alizharb/flare

View on GitHub
Deep Wiki
Context7

Quick Start

Ready to show your first notification? Let's go!

Basic Usage

The easiest way to use Flare is through the Flare facade. You can call it from any Livewire component or Controller.

use AlizHarb\Flare\Facades\Flare;

class UserProfile extends Component
{
    public function update()
    {
        // ... update logic ...

        Flare::success('Profile updated successfully!');
    }
}

Notification Types

Flare comes with 4 built-in notification types, each with its own distinct visual style.

Adding a Title

You can add a bold title (heading) to any notification to give it more context:

Flare::success(
    text: 'Your changes have been saved.',
    heading: 'Success!'
);

Customizing Duration

By default, toasts disappear after 5 seconds. You can change this per toast:

Flare::info(
    text: 'I will stay for 10 seconds.',
    duration: 10000 // milliseconds
);

[!TIP] To make a toast persistent (never auto-dismiss), set duration to 0.

Flare::error(
    text: 'Network error. Please try again.',
    duration: 0
);
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.
daikazu/eloquent-salesforce-objects
unseen-codes/chat
romalytar/yammi-jobs-monitoring-laravel
kisame76/filament-db-table-state
nqxcode/laravel-lucene-search
dpfx/laravel-livewire-wizards
workos/workos-php-laravel
sofa/laravel-global-scope
nawasara/auth-primitives
adhocrat-io/arkhe-main
make-dev/orca-harpoon
itsemon245/lamet
baks-dev/dashboard
amoifr/pickle-panther-bundle
make-dev/orca
dmstr/symfony-system-resources-bundle
dmstr/symfony-job-queue-bundle
dmstr/openapi-json-schema-bundle
dmstr/keycloak-security-bundle
dmstr/doctrine-audit-log-bundle