摘要: Eloquent: SerializationIntroductionBasic UsageHiding Attributes From JSONAppending Values To JSONIntroductionWhen building JSON APIs, you will often n... 阅读全文
posted @ 2015-07-06 10:45 grkin 阅读(339) 评论(0) 推荐(0) 编辑
摘要: Eloquent: MutatorsIntroductionAccessors & MutatorsDate MutatorsAttribute CastingIntroductionAccessors and mutators allow you to format Eloquent attrib... 阅读全文
posted @ 2015-07-06 10:44 grkin 阅读(414) 评论(0) 推荐(0) 编辑
摘要: Eloquent: CollectionsIntroductionAvailable MethodsCustom CollectionsIntroductionAll multi-result sets returned by Eloquent are an instance of theIllum... 阅读全文
posted @ 2015-07-06 10:42 grkin 阅读(351) 评论(0) 推荐(0) 编辑
摘要: Eloquent: RelationshipsIntroductionDefining RelationshipsOne To OneOne To ManyMany To ManyHas Many ThroughPolymorphic RelationsMany To Many Polymorphi... 阅读全文
posted @ 2015-07-06 10:40 grkin 阅读(647) 评论(0) 推荐(0) 编辑
摘要: Eloquent:入门简介定义模型(model)Eloquent 模型规范取出多个模型取出单个模型 / 集合取出集合插入更新模型基本插入基本更新大批量赋值删除模型软删除查询软删除的模型查询范围事件简介Laravel 所自带的 Eloquent ORM 是一个优美、简洁的 ActiveRecord 实... 阅读全文
posted @ 2015-07-06 10:38 grkin 阅读(734) 评论(0) 推荐(0) 编辑