承接 conquest/flash 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

conquest/flash

最新稳定版本:v0.1.1

Composer 安装命令:

composer require conquest/flash

包简介

This is my package flash

README 文档

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Flash exposes a global flash helper, which allows you to easily add flash messages to your session. These messages can be passed to your frontend using the HandleInertiaRequests middleware, see the usage section for more information.

Installation

You can install the package via composer:

composer require conquest/flash

Usage

The package ships with a global flash helper. Call this helper with a message to add flash messages to the session. You can configure the message, description and type. Two classes are provided which can be added separately. The Toast class allows for a duration to be set, a Banner class has no duration and will remain until dismissed.

If not specified, the flash message is assumed to be a Toast.

flash('Hello, World!')
flash()->toast('Hello, World!')
flash()->banner('Hello, world!')

To pass this to an Inertia frontend, add the following to the HandleInertiaRequests middleware array:

'flash' => Flash::messages(),

It is important to use the flash key if you intend on using the Vue + Inertia plugin.

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-07-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固