Download the PHP package geekghc/flash without Composer
On this page you can find all versions of the php package geekghc/flash. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download geekghc/flash
More information about geekghc/flash
Files in geekghc/flash
Download geekghc/flash
More information about geekghc/flash
Files in geekghc/flash
Please rate this library. Is it a good library?
Informations about the package flash
Flash Message For Laravel5
介绍
预览
安装
使用composer
安装
或者在你的composer.json
里require
部分添加
下载完毕之后在添加service provider
为了方便使用 可以再去添加一个alias
用法
在你的控制器里 重定向之前
在你的视图中添加视图
或者
你也可以按需求使用下面这种形式
- LaraFlash::success('Message')
- LaraFlash::info('Message')
- LaraFlash::error('Message')
- LaraFlash::warning('Message')
当然你可也以使用这样的helper function
- laraflash('Message!') 默认为
info
- laraflash()->success('Message!')
- laraflash()->info('Message!')
- laraflash()->error('Message!')
- laraflash()->warning('Message!')
例子
在此之前使用CDN
的形式引入jquery
和font-awesome
自定义样式
你可以修改样式以达到你的需求
这样一来视图文件会放在你的目录下
All versions of flash with dependencies
PHP Build Version
Package Version
The package geekghc/flash contains the following files
Loading the files please wait ....