course

Roll your own Facades

Popularized by Laravel, Facades hide underlying classes and allow normal methods to be invoked as static methods. With a pinch of magic, we're going to create our own!

Watch this course

1. Introduction

03:00

2. Basic Str class in the container

02:50

3. Building the Facade

10:01

4. Caching resolved container instances

02:52