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: https://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: https://github.com/aschmelyun/docker-compose-laravel

#laravel

How to use Laravel's bind and singleton methods
4.05 GEEK