How to use Laravel's bind and singleton methods
HTML-код
- Опубликовано: 8 сен 2024
- 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: / 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/asc...
Follow me on Twitter! / aschmelyun
Thanks Patreon Supporters:
- Sam Ross
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
THANK YOU - laravel documentation is pretty bad on this one feature, thanks man!
Excellent. You explained the topic absolutely straightforward and in the easiest way.
Insane, you explained everything in like 1 min or so! Great!
Thanks for this great explanation of singleton and bind methods.
Great work! Very well explained. Thanks!
Great video, Excellent explanation! thank you
thank you so much, very helpful
this video helped me a lot, thanks!
just what I needed!
Amazing lesson! Love your videos Andrew :)
Man, your editor theme is awesome like another level, which one is you're using.
pls tell
Holy shit man, many thanks!
Thank you 🙏🏼
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.
Thanks mate ☺️
Thank you
thanks
Good one
What the name of extinsion who change the folder icon to this icon
It's called Atom Material Icons!
Wow!!
Do I recognize the sound of Cherry Browns?
Close, Blues!
thanks andrew tate
Absolutely useless..