Рет қаралды 22,771
In this short video, I'll show you how to use Laravel's bind + singleton service provider methods in your application, as well as demo example use cases for both.
Directly support more videos: www.patreon.com/aschmelyun
You'll learn:
- How to create single-line static calls to non-static class methods
- How to initialize a class and chain methods to it
- A basic overview of the singleton pattern and where it's useful
Docker-compose script for setting up a fast, local Laravel environment: github.com/aschmelyun/docker-compose-laravel
Follow me on Twitter! aschmelyun
Thanks Patreon Supporters:
- Sam Ross