以此记录学习laravel的一些问题问题: 设置路由后页面总是404 not found解决:需要在apache 配置文件里添加对laravel文件夹的访问 Options Indexes FollowSymLinks # # AllowOverride controls what directiv...
分类:
其他好文 时间:
2015-07-29 15:35:49
阅读次数:
100
Laravel是个强大简洁的PHP框架,大家点进来必定是清楚这一点的,我也就不再介绍Laravel的历史,创始人,PHP的历史,创始人...火的发明和使用了。首先的首先,安装和配置Laravel之前我们需要知道Composer是个什么东西。Composer是PHP的类库管理工具,有了这个工具之后我们就可以..
分类:
其他好文 时间:
2015-07-21 22:23:41
阅读次数:
125
1、在laravel的Eloquent ORM中,默认表会有created_at、updated_at两个字段,因此在使用create函数时若表无这两个字段会出错,可以设置public $timestamps = false;2、使用create跟 $fillable 的设置有关,若某些字段不能加入...
分类:
其他好文 时间:
2015-07-21 12:32:04
阅读次数:
138
1. Composer 安装编辑 composer.json 文件, require 节点下增加:"illuminate/html": "~5.0"然后composer install2. 添加 providers修改 config/app.php 文件, 在 providers 数组里面添加:'I...
分类:
Web程序 时间:
2015-07-21 12:16:55
阅读次数:
149
问题描述也许标题写的不够清楚,实际情况是,在我使用laravel的过程中,需要将自己的一个类,通过服务提供者注册到IOC容器中,但是在实际操作过程中,出现了以下错误:Unresolvable dependency resolving [Parameter #0 [ $name ]]意思就是说,我的注册东西,不能够进行类型转换。我的代码中没有进行代码说明需要的类型。...
分类:
其他好文 时间:
2015-07-15 22:57:25
阅读次数:
189
OAuth2.0使用的场景越来越多,如果正确使用?本文针对Laravel5进行了一些探索,将相关的操作使用流程发布出来,供大家参考。...
分类:
其他好文 时间:
2015-07-10 09:39:36
阅读次数:
775
Eloquent: Collections Introduction Available Methods Custom Collections Introduction All multi-result sets returned by Eloquent are an instance of the...
分类:
其他好文 时间:
2015-07-06 11:49:56
阅读次数:
127
Eloquent:入门 简介 定义模型(model) Eloquent Model Conventions Retrieving Multiple Models Retrieving Single Models / Aggregates Retrieving Aggregates ...
分类:
其他好文 时间:
2015-07-06 11:46:49
阅读次数:
187
Eloquent: Serialization Introduction Basic Usage Hiding Attributes From JSON Appending Values To JSON Introduction When building JSON APIs, you will o...
分类:
其他好文 时间:
2015-07-06 11:44:17
阅读次数:
173
Eloquent: Relationships Introduction Defining Relationships One To One One To Many Many To Many Has Many Through Polymorphic Relations Many To Man...
分类:
其他好文 时间:
2015-07-06 11:40:51
阅读次数:
281