Laravel Design Patterns and Best Practices

Enhance the quality of your web applications by efficiently implementing design patterns in Laravel with this book and ebook.

Laravel Design Patterns and Best Practices

Starting
Arda Kılıçdağı, H. İbrahim YILMAZ

Enhance the quality of your web applications by efficiently implementing design patterns in Laravel with this book and ebook.
$13.99
$22.99
RRP $13.99
RRP $22.99
eBook
Print + eBook
$12.99 p/month

Get Access

Get Unlimited Access to every Packt eBook and Video course

Enjoy full and instant access to over 3000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781783287987
Paperback106 pages

About This Book

  • Create fully functional web applications using design patterns in Laravel
  • Explore various techniques to adapt different software patterns that suit your needs
  • Get to know the best practices to utilize when making a web application
  • Concise and practical guide to master the MVC approach of Laravel and its benefits

Who This Book Is For

This book is intended for web application developers working with Laravel who want to increase the efficiency of their web applications. It assumes that you have some experience with the Laravel PHP framework and are familiar with coding OOP methods.

Table of Contents

Chapter 1: Design and Architectural Pattern Fundamentals
Design patterns
What is MVC?
Summary
Chapter 2: Models in MVC
What is a Model?
Purposes of the Model
Model instances
The Model in Laravel
Summary
Chapter 3: Views in MVC
What is a View?
View objects
View in Laravel
Summary
Chapter 4: Controllers in MVC
What is a Controller?
The purpose of the Controller
Controllers in Laravel
Using Controllers inside folders
Summary
Chapter 5: Design Patterns in Laravel
The Builder (Manager) pattern
The Factory pattern
The Repository pattern
The Strategy pattern
The Provider pattern
The Facade pattern
Summary
Chapter 6: Best Practices in Laravel
Basic practices
Advanced practices
Summary

What You Will Learn

  • „Learn about the design pattern fundamentals in OOP programming
  • „Get acquainted with the structure of MVC architecture and use objects in your applications
  • Discover Laravel's approach to MVC and its benefits
  • Work with various design patterns used in Laravel such as the Builder (Manager) pattern, Factory pattern, Repository pattern, and Strategy pattern
  • Create and maintain web applications using Laravel best practices
  • „Implement PHP design patterns to solve commonly occurring problems

In Detail

This book covers how to develop different applications and solve recurring problems using Laravel 4 design patterns. It will walk you through the widely used design patterns—the Builder (Manager) pattern, Factory pattern, Repository pattern, and Strategy pattern—and will empower you to use these patterns while developing various applications with Laravel. This book will help you find stable and acceptable solutions, thereby improving the quality of your applications. Throughout the course of the book, you will be introduced to a number of clear, practical examples about PHP design patterns and their usage in various projects. You will also get acquainted with the best practices for Laravel that will greatly reduce the probability of introducing errors into your web applications.

By the end of the book, you will be accustomed to the best practices and the important design patterns used in Laravel to make a great website.

Authors

Table of Contents

Chapter 1: Design and Architectural Pattern Fundamentals
Design patterns
What is MVC?
Summary
Chapter 2: Models in MVC
What is a Model?
Purposes of the Model
Model instances
The Model in Laravel
Summary
Chapter 3: Views in MVC
What is a View?
View objects
View in Laravel
Summary
Chapter 4: Controllers in MVC
What is a Controller?
The purpose of the Controller
Controllers in Laravel
Using Controllers inside folders
Summary
Chapter 5: Design Patterns in Laravel
The Builder (Manager) pattern
The Factory pattern
The Repository pattern
The Strategy pattern
The Provider pattern
The Facade pattern
Summary
Chapter 6: Best Practices in Laravel
Basic practices
Advanced practices
Summary

Book Details

ISBN 139781783287987
Paperback106 pages
Read More