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

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.
emuniq/filament-browser-notifications
syriable/filament-translator
hungnm28/livewire-form
wenprise/eloquent
crudly/encrypted
fadion/bouncy
cuci/prototurk-sdk
gos/pubsub-router-bundle
cuci/prototurk-sdk-symfony
clementtalleu/easyadmin-markdown-bundle
codeflextech/permission-manager
karnoweb/livewire-datepicker
sayedenam/sayed-dashboard
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui