随笔分类 -  Laravel

摘要:Eloquent: SerializationIntroductionBasic UsageHiding Attributes From JSONAppending Values To JSONIntroductionWhen building JSON APIs, you will often n... 阅读全文
posted @ 2015-07-06 10:45 grkin 阅读(353) 评论(0) 推荐(0)
摘要:Eloquent: MutatorsIntroductionAccessors & MutatorsDate MutatorsAttribute CastingIntroductionAccessors and mutators allow you to format Eloquent attrib... 阅读全文
posted @ 2015-07-06 10:44 grkin 阅读(425) 评论(0) 推荐(0)
摘要:Eloquent: CollectionsIntroductionAvailable MethodsCustom CollectionsIntroductionAll multi-result sets returned by Eloquent are an instance of theIllum... 阅读全文
posted @ 2015-07-06 10:42 grkin 阅读(359) 评论(0) 推荐(0)
摘要:Eloquent: RelationshipsIntroductionDefining RelationshipsOne To OneOne To ManyMany To ManyHas Many ThroughPolymorphic RelationsMany To Many Polymorphi... 阅读全文
posted @ 2015-07-06 10:40 grkin 阅读(664) 评论(0) 推荐(0)
摘要:Eloquent:入门简介定义模型(model)Eloquent 模型规范取出多个模型取出单个模型 / 集合取出集合插入更新模型基本插入基本更新大批量赋值删除模型软删除查询软删除的模型查询范围事件简介Laravel 所自带的 Eloquent ORM 是一个优美、简洁的 ActiveRecord 实... 阅读全文
posted @ 2015-07-06 10:38 grkin 阅读(759) 评论(0) 推荐(0)
摘要:简介编写数据填充类使用模型工厂类调用额外填充类执行填充#简介Laravel includes a simple method of seeding your database with test data using seed classes. All seed classes are stored... 阅读全文
posted @ 2015-07-02 14:38 grkin 阅读(376) 评论(0) 推荐(0)
摘要:介绍建立迁移文件迁移文件结构执行迁移回滚迁移填写迁移文件创建表重命名/ 删除表创建字段修改字段删除字段建立索引删除索引外键约束#介绍Migrations are like version control for your database, allowing a team to easily mod... 阅读全文
posted @ 2015-07-02 14:37 grkin 阅读(470) 评论(0) 推荐(0)
摘要:Introduction Retrieving Results Aggregates Selects Joins Unions Where Clauses Advanced Where Clauses Ordering, Grouping, Limit, & O... 阅读全文
posted @ 2015-07-02 14:36 grkin 阅读(425) 评论(0) 推荐(0)
摘要:简介 运行原生SQL查询 监听查询事件 数据库事务 使用多数据库连接 简介 Laravel makes connecting with databases and running queries extremely simple across a variety of database back-ends using eithe... 阅读全文
posted @ 2015-07-02 14:34 grkin 阅读(607) 评论(0) 推荐(0)
摘要:PHP自从5.3后似乎又热度又回升, 最近了解了一下PHP框架之一Laravel, 最近最新的版本已经是4.3 基本的结构这里不讲, 要了解可以在这里看文档 http://v4.golaravel.com/docs/4.2 , 下面只是记录一下身份验证的实现过程 /*********************** * 注册 登录 登出 路由 ... 阅读全文
posted @ 2014-07-30 11:26 grkin 阅读(693) 评论(0) 推荐(0)