Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
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 Controllers inside folders
Summary
5. Design Patterns in Laravel
The Builder (Manager) pattern
The need for the Builder (Manager) pattern
The Factory pattern
The need for the Factory pattern
The Repository pattern
The need for the Repository pattern
The Strategy pattern
The need for the Strategy pattern
The Provider pattern
The Facade pattern
Summary
6. Best Practices in Laravel
Basic practices
Advanced practices
The Factory pattern
The Builder pattern
The Strategy pattern
The Repository pattern
Summary
Index
← Prev
Back
Next →
← Prev
Back
Next →