flash message for laravel5_php_web-itnose
é¦é¡µ
asp
php
javascript
iis
apache
html/css
coldfusion
ajax
vbscript
cgi
xml/xsl
è·¨æµè§å¨å¼å
ruby/rails
ç¨åºå
html5
jquery
seo
jboss
json
angularjs
markdown
nginx
thinkphp
yii
pageadmin
extjs
wampserver
kendo ui
coffeescript
gulp
ecmascript
bootstrap
itnoseé¦é¡µ > web > php >
flash message for laravel5
2017-06-11 19:11
flash message for laravel5
ä»ç»
åºäº jeffery way’s flash package
githubå°å
https://github.com/geekghc/laraflash
é¢è§
å®è£
使ç¨composerå®è£
composer require geekghc/flash
æè å¨ä½ çcomposer.jsonérequireé¨åæ·»å
“geekghc/flash”:”~2.0″
ä¸è½½å®æ¯ä¹åå¨config/app.phpæ·»å service provider
‘providers’ => [
geekghc\laraflash\flashprovider::class,
];
为äºæ¹ä¾¿ä½¿ç¨ å¯ä»¥åå»æ·»å ä¸ä¸ªalias
‘aliases’ => [
‘laraflash’=>geekghc\laraflash\flash::class,
];
ç¨æ³
å¨ä½ çæ§å¶å¨é éå®åä¹å
public function store()
{
laraflash::success(“welcome aboard!”);
return redirect::home();
}
å¨ä½ çè§å¾ä¸æ·»å notificationè§å¾
@include(‘laraflash::notification’)
æè
@include(‘laraflash::header-notification’)
ä½ ä¹å¯ä»¥æéæ±ä½¿ç¨ä¸é¢è¿ç§å½¢å¼
laraflash::success(‘message’)
laraflash::info(‘message’)
laraflash::error(‘message’)
laraflash::warning(‘message’)
å½ç¶ä½ å¯ä¹ä»¥ä½¿ç¨laraflash()è¿æ ·çhelper function
laraflash(‘message!’) é»è®¤ä¸ºinfo
laraflash()->success(‘message!’)
laraflash()->info(‘message!’)
laraflash()->error(‘message!’)
laraflash()->warning(‘message!’)
ä¾å
å¨æ¤ä¹å使ç¨cdnçå½¢å¼å¼å ¥jqueryåfont-awesome
laravel
@include(‘laraflash::notification’)
èªå®ä¹æ ·å¼
ä½ å¯ä»¥ä¿®æ¹æ ·å¼ä»¥è¾¾å°ä½ çéæ±
php artisan vendor:publish
è¿æ ·ä¸æ¥è§å¾æ件ä¼æ¾å¨ä½ çresources/views/vendor/laraflashç®å½ä¸
ç¸å
³æç´¢ï¼
html5 flash
html5ä¸flash
html5åflash
flashä¸html5
flash å¾è¡¨
ç¸å ³æç«
2016-04-23 22:53 [laravel 5 fundamentals] 20 â flash message
2016-02-07 04:51 laravel5å¦ä¹ ç¬è®°
2017-04-25 14:53 laravel5å¼å¸¸åæ¶éç¥
2016-09-12 14:38 php laravel5 å¦ä¹ ç¬è®°(äº)
2016-09-06 13:53 php laravel5 å¦ä¹ ç¬è®°(ä¸)
æ´å¤ç¸å ³æç« >>
ææ°æç«
2017-06-20 01:35 èé们ï¼æ没æå¯è½è®©phpæ件åæ¶åªè½ä¸ä¸ªäººè®¿é®
2017-06-20 01:35 æä¹ç¦æ¢å¾çç´æ¥éè¿url访é®
2017-06-20 01:35 æ±æ!å¯å¨wampåªè½ç¨æ¬æºè®¿é®,åå±åç½çå
¶å®è®¾å¤è®¿é®ä¸å°!æäºå¤§å天t-t
2017-06-19 15:35 nginxä¸çthinkphpé®é¢
2017-06-19 15:35 php form æ件ä¸ä¼
æ´å¤ææ°æç« >>
çé¨æç´¢
flashå¾è¡¨
flash xml
xml flash
flashä¿®æ¹xml
jsp html5
jsp md5
鬼泣5 .net framework
html5 webservice
html5 å¾è¡¨
html5游æ
html5 游æ
html5 æç¨
html5 canvas
html5æç¨
html5 æ¡æ¶
京icpå¤14022385å·-2
©2014 itnose软件ç¼ç¨æç¨ | èç³»æ们ï¼emailï¼twobrushes@126.com qq:35155868