How to use Laravel's bind and singleton methods

  Рет қаралды 22,771

Andrew Schmelyun

4 жыл бұрын

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

Пікірлер: 26
@Peird
@Peird 4 жыл бұрын
Thanks for this example, reading the Laravel docs about Service Containers can be abstract and hard to get at first. Seeing working examples makes it easier to understand :D
@mikewright798
@mikewright798 4 жыл бұрын
THANK YOU - laravel documentation is pretty bad on this one feature, thanks man!
@returnZeroo
@returnZeroo 3 жыл бұрын
Excellent. You explained the topic absolutely straightforward and in the easiest way.
@ProgrammingwithPeter
@ProgrammingwithPeter 4 жыл бұрын
Insane, you explained everything in like 1 min or so! Great!
@buchdev
@buchdev 4 жыл бұрын
Thanks for this great explanation of singleton and bind methods.
@prasadchinwal9997
@prasadchinwal9997 3 жыл бұрын
Amazing lesson! Love your videos Andrew :)
@julianc8588
@julianc8588 Жыл бұрын
Great work! Very well explained. Thanks!
@batepapowall
@batepapowall 2 жыл бұрын
this video helped me a lot, thanks!
@AriusTigger
@AriusTigger Жыл бұрын
Great video, Excellent explanation! thank you
@WhiteSiroi
@WhiteSiroi Жыл бұрын
thank you so much, very helpful
@ricko13
@ricko13 Жыл бұрын
just what I needed!
@AravindPanicker
@AravindPanicker 4 жыл бұрын
Thank you 🙏🏼
@BackyardniJuan
@BackyardniJuan 2 жыл бұрын
Thanks mate ☺️
@Padubiaso
@Padubiaso 2 жыл бұрын
Holy shit man, many thanks!
@InaamUllahAzmat
@InaamUllahAzmat 3 жыл бұрын
Thanks for your video. Any guide to use this singleton pattern to load user settings throughout user session. E.g: the font size or color themes chosen by user etc.
@christopheruzochukwu5655
@christopheruzochukwu5655 4 жыл бұрын
Good one
@teddyperera8531
@teddyperera8531 3 жыл бұрын
Thank you
@ashishbhardwaj9760
@ashishbhardwaj9760 3 жыл бұрын
Man, your editor theme is awesome like another level, which one is you're using. pls tell
@volpatomvable
@volpatomvable 4 жыл бұрын
thanks
@mohammedshopan2226
@mohammedshopan2226 3 жыл бұрын
What the name of extinsion who change the folder icon to this icon
@aschmelyun
@aschmelyun 3 жыл бұрын
It's called Atom Material Icons!
@wagnercsfilho
@wagnercsfilho 3 жыл бұрын
Wow!!
@dotancohen
@dotancohen 4 жыл бұрын
Do I recognize the sound of Cherry Browns?
@aschmelyun
@aschmelyun 4 жыл бұрын
Close, Blues!
@user-ji2bo6hf2k
@user-ji2bo6hf2k Жыл бұрын
thanks andrew tate
@AleksandarVasiljevic-jc1km
@AleksandarVasiljevic-jc1km Жыл бұрын
Absolutely useless..