Laravel 5 Form 和 HTML 的使用
来源:互联网 发布:天时网络电玩城 编辑:程序博客网 时间:2024/05/17 17:16
最近在用 laravel 5 做例子,在做到表单的时候,习惯性的使用 Form::open() 结果发现提示错误,没有这个类,
好吧,找了找,发现 在laravel 5 中,把 from 和 html 单独的提出去了,下面就是安装使用方法啦
好吧,找了找,发现 在laravel 5 中,把 from 和 html 单独的提出去了,下面就是安装使用方法啦
添加到 composer.json
"require": {
"illuminate/html": "~5.0"
},
更新
composer update
更新完以后,打开 /config/app.php
在
providers
数组下面添加
'Illuminate\Html\HtmlServiceProvider',
aliases
数组下面添加
'Form' => 'Illuminate\Html\FormFacade',
'HTML' => 'Illuminate\Html\HtmlFacade'
这样就安装好啦!
使用方法
以前写法是这样的
{{Form::open()}}
{{Form::close()}}
现在变成这样的了
{!! Form::open() !!}
{!! Form::close() !!}
基本上就是这样,更多的使用方法可以看手册 http://laravelcollective.com/
0 0
- laravel 5 Form 和 HTML 的使用
- Laravel 5 Form 和 HTML 的使用
- laravel中的表单Form的使用
- Laravel使用Form
- Laravel Form-builder使用
- Class form or html not found in Laravel 5
- Class form or html not found in Laravel 5 :
- 前端HTML<form>表单的属性和使用
- Laravel使用Form Request使你的Controller更整洁
- Laravel 5中使用 illuminate/html扩展
- html中form表单的使用实例
- html form中onsubmit的使用
- html form中onsubmit的使用
- html form中onsubmit的使用
- 普通html标签<form>和struts2<s:form>的区别
- html中 table 和 form的位置
- html的form标签和input标签
- HTML中的<form>和<input>的用法
- android soap webservers 无法执行 报错 ht.call(SOAP_ACTION, envelope);解决方法
- Xcode如何打包ipa安装包
- Find that single one.(linear runtime complexity0
- 获取Android Activity两种方法
- 尼姆游戏(吃花生米问题)
- Laravel 5 Form 和 HTML 的使用
- LoadBitmap(IDB_BITMAP1) -- 未定义标识符 IDB_BITMAP1
- Reverse Integer
- String to Integer (atoi)
- SQL 左外连接,右外连接,全连接,内连接
- 九宫格填法规律--奇数
- 约瑟夫游戏
- 如何解决fpga high fanout问题
- PHP实现当前文件夹下所有文件和文件夹的遍历