Courses

Design Patterns in Laravel 11

  • 17 lessons
  • 14319 words

This content is available only for premium members.

About this course

Design patterns are complex and quite confusing. For many years, I've been asked to create content about them. So, finally, you're reading this course.

The majority of tutorials about design patterns sound vague and theoretical. Do you hate Shape/Rectangle and Foo/Bar examples like I do? As a result, the concept is boring, hard to understand, and not applicable to real-world projects.

So, I have three goals here:

  1. Filter: pick only the patterns I've seen used in Laravel

  2. Translate: explain the theoretical definitions in human language

  3. Practice: show real examples of patterns both in the /app folder of Laravel projects (first section of the course) and in the core of the framework, in the /vendor folder (second section of the course).


Here are a few code examples from the course.

Services with interfaces:

Creating your own Facades:

Singleton/Manager in Laravel:


Testimonials from students:


So, are you with me on this journey "from boring to exciting"? :)

Let's start with the first lesson.