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

API Reference

This page documents the available methods on the Flare facade.

Facade Methods

success()

Shows a success notification (green).

Flare::success(string $text, string|null $heading = null, int|null $duration = null)
Parameter Type Description
$text string The main message to display.
$heading string Optional bold title.
$duration int Duration in milliseconds.

error()

Shows an error notification (red). Alias: danger().

Flare::error(string $text, string|null $heading = null, int|null $duration = null)

warning()

Shows a warning notification (yellow/orange).

Flare::warning(string $text, string|null $heading = null, int|null $duration = null)

info()

Shows an info notification (blue).

Flare::info(string $text, string|null $heading = null, int|null $duration = null)

toast()

The generic method for showing a toast with full control.

Flare::toast(string $text, array $options = [])

Available Options:

Option Type Default Description
heading string null Bold title text
variant string 'info' success, error, warning, info
theme string config modern, classic, vibrant
duration int 5000 Time in ms. 0 for persistent.
position string config top-right, bottom-center, etc.
icon string null Custom SVG icon string
sound string null URL to sound file to play

JavaScript API

Flare also exposes a global window.Flare object for client-side usage.

Flare.success(text, options)

Flare.error(text, options)

Flare.warning(text, options)

Flare.info(text, options)

Flare.toast(text, options)

Example:

Flare.success("Hello from JS!", {
    heading: "Welcome",
    duration: 3000,
});
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.
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table
siberfx/flysystem-wasabi
hollyit/token-replace
ippanelcom/laravel-sdk
adachsoft/changelog-linter
adachsoft/collection
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel