定制 voorhof/flash 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

voorhof/flash

最新稳定版本:v1.0.3

Composer 安装命令:

composer require voorhof/flash

包简介

A simple flash message service for Laravel applications, using Bootstrap alerts

README 文档

README

Latest Version on Packagist GitHub Code Style Action Status Total Downloads

A simple, elegant flash messaging package for Laravel applications, using Bootstrap alerts as the view.

Installation

You can install the package via composer:

composer require voorhof/flash

The package will automatically register its service provider.
You can publish the configuration file with:

php artisan vendor:publish --provider="Voorhof\Flash\FlashServiceProvider" --tag="flash-config"

You can publish the views with:

php artisan vendor:publish --provider="Voorhof\Flash\FlashServiceProvider" --tag="flash-views"

Usage

use Voorhof\Flash\Facades\Flash;

// Flash a success message
Flash::success('Item created successfully!');

// Flash a warning message
Flash::warning('Please review your input.');

// Flash a danger/error message
Flash::danger('An error occurred!');

// Flash an info message
Flash::info('Here is some information.');

In your Blade template, include the flash message component:

@include('flash::flash')

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 446
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 6
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-07-24