1、框架设置首先我们需要设置一下laravel框架,打开application/config/application.php文件,我们要先把文件中的key参数设置为任意的32位字符串:'key'=>'YourSecretKeyGoesHere!',这个字符串会被用于加密我们的密码。然后在applic...
分类:
数据库 时间:
2014-09-18 16:22:34
阅读次数:
245
Laravel是一个新兴PHP WEB开发框架,支持MVC模式的开发、支持ORM、页面模板等特性,比较看好此开发框架。http://cheats.jesse-obrien.ca/Laravel是一个新兴PHP WEB开发框架,支持MVC模式的开发、支持ORM、页面模板等特性,比较看好此开发框架。ht...
分类:
其他好文 时间:
2014-09-18 16:09:34
阅读次数:
179
ProblemYou want to add middleware to your application but don't know where to begin.SolutionCreate a simple middleware class.Step 1 - Create the class...
分类:
其他好文 时间:
2014-09-17 23:13:12
阅读次数:
246
在Laravel框架上开发了几天,不得不说,确实比较优雅,处理问题逻辑比较清楚。 今天打算在CentOS 7上配置一个Laravel,之前都是在本机上开发,打算实际配置一下。 1)系统上已经安装了Apache、PHP、mysql,安装命令为yum install httpd php mysq...
分类:
其他好文 时间:
2014-09-17 13:25:32
阅读次数:
222
解决了类自动加载的问题,剩下的问题就是看文档了,laravel的官方文档虽然简单,但是却包含了很多基础知识,学习Laravel最好先看看官方文档,我感觉帮助很大,因为laravel框架的源码看起来并不容易,一层一层的套,看文档会快一些,如果想更详细的了解,可以考虑研究源码。 考虑到larave...
分类:
其他好文 时间:
2014-09-17 11:58:22
阅读次数:
1488
---恢复内容开始---参考:http://www.cnblogs.com/youxin/p/3967274.htmlhttp://scotch.io/tutorials/simple-laravel-crud-with-resource-controllershttp://www.tuicool....
获取当前URL获取当前URL有两种方式,URL::current()或URL::full(),区别是返不返回GET参数如Route::get('/current/url',function(){returnURL::current();});输入/current/url?foo=bar时只显示htt...
分类:
其他好文 时间:
2014-09-13 21:21:45
阅读次数:
247
一篇文章:Generating a Link to a Javascript FileProblemYou want your Blade template to load an external javascript file.Instead of usingIf the file path yo...
分类:
编程语言 时间:
2014-09-11 22:23:02
阅读次数:
357
Input::old('username')Querying using raw SQL statements$sql=" insert into shows(name,rating,actor) VALUES(?,?,?)"; $data1 = array('Doctor Who',...
分类:
其他好文 时间:
2014-09-11 22:14:42
阅读次数:
225
原文来自于:http://www.sitepoint.com/best-php-frameworks-2014/Update: If you’d like to take part in the next high-yield survey from SitePoint, please vote f...
分类:
Web程序 时间:
2014-09-05 22:21:02
阅读次数:
376