Weave 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

Configuration

Flare is designed to be zero-config, but it's also highly customizable. You can publish the configuration file to change global defaults.

Publishing Config

Run the following command to publish the flare.php config file:

php artisan vendor:publish --tag=flare-config

Configuration Options

Here is the default configuration file with explanations:

return [

    /*
    |--------------------------------------------------------------------------
    | Default Theme
    |--------------------------------------------------------------------------
    |
    | The visual theme to use for notifications.
    | Options: 'classic', 'modern', 'vibrant'
    |
    */
    'theme' => 'modern',

    /*
    |--------------------------------------------------------------------------
    | Default Position
    |--------------------------------------------------------------------------
    |
    | Where the notifications should appear on the screen.
    | Options: 'top-left', 'top-center', 'top-right',
    |          'bottom-left', 'bottom-center', 'bottom-right'
    |
    */
    'position' => 'bottom-right',

    /*
    |--------------------------------------------------------------------------
    | Default Duration
    |--------------------------------------------------------------------------
    |
    | How long (in milliseconds) a toast should stay visible.
    | Set to 0 for persistent toasts.
    |
    */
    'duration' => 5000,

    /*
    |--------------------------------------------------------------------------
    | Stacking
    |--------------------------------------------------------------------------
    |
    | If true, toasts will stack on top of each other to save space.
    | If false, they will appear in a list.
    |
    */
    'stacking' => true,

    /*
    |--------------------------------------------------------------------------
    | Max Visible Toasts
    |--------------------------------------------------------------------------
    |
    | The maximum number of toasts to show at once when not stacked.
    |
    */
    'max_visible' => 5,

    /*
    |--------------------------------------------------------------------------
    | Play Sounds
    |--------------------------------------------------------------------------
    |
    | Whether to play a subtle sound when a notification appears.
    |
    */
    'sounds' => [
        'enabled' => false,
        'success' => '/vendor/flare/sounds/success.mp3',
        'error' => '/vendor/flare/sounds/error.mp3',
        'warning' => '/vendor/flare/sounds/warning.mp3',
        'info' => '/vendor/flare/sounds/info.mp3',
    ],

];

Runtime Configuration

You can also override these settings at runtime using the Flare facade methods. See the API Reference for more details.

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.
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator