LaravelDesignPatternsandBestPractices
- 资料大王PDF
-
0 次阅读
-
0 次下载
-
2024-09-23 21:38:14
微信
赏
支付宝
文档简介:
Laravel Design Patterns and Best
Practices
Table of Contents
Laravel Design Patterns and Best Practices
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Design and Architectural Pattern Fundamentals
Design patterns
Elements of design patterns
Classification of design patterns
Creational patterns
Structural patterns
Behavioral patterns
What is MVC?
Summary
2. Models in MVC
What is a Model?
Purposes of the Model
Model instances
The Model in Laravel
Fluent Query Builder
Eloquent ORM
Relationships
Mass assignment
Soft deleting
Eager loading
Timestamps
Query scopes
Accessors and mutators
Model events
Model observers
Migrations
Database seeders
Summary
3. Views in MVC
What is a View?
View objects
View in Laravel
Summary
4. Controllers in MVC
What is a Controller?
The purpose of the Controller
Controllers in Laravel
Routes
Using Contr......
评论
发表评论