Download the PHP package laravelchen/myflash without Composer
On this page you can find all versions of the php package laravelchen/myflash. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package myflash
Flash Message For Laravel5
介绍
整个package采用了Laravel内置的中的一次性请求flash函数. 显示视图的方式有三种,图中可以看到.(安装的时候最好开启vpn,因为给有人反映国内镜像好像安装不了,所以说用国外的composer的镜像吧!)
效果图
安装
使用composer安装
然后在添加provider和alias
用法
在redirect重定向之前添加falsh
同时你也可以使用下面这种形式
- MyFlash::success('邮件已发!请查收邮件!')
- MyFlash::info('邮件已发!请查收邮件!')
- MyFlash::error('邮件已发!请查收邮件!')
- MyFlash::warning('邮件已发!请查收邮件!')
或者你可以使用这种辅助函数的形式
- myflash('邮件已发!请查收邮件!')
- myflash()->success('邮件已发!请查收邮件!')
- myflash()->info('邮件已发!请查收邮件!')
- myflash()->error('邮件已发!请查收邮件!')
- myflash()->warning('邮件已发!请查收邮件!')
最后在你的视图中添加视图
注意事项
请在你的视图中增加font-awesome和jquery
例子
自定义
如果你想要自定义样式或者其他效果的话可以使用
之后视图文件会出现在你的目录下
最后感谢mercuryseries和Jeffrey Way的package!
All versions of myflash with dependencies
PHP Build Version
Package Version
No informations.
The package laravelchen/myflash contains the following files
Loading the files please wait ....