Laravel: When to Use Static Methods, Services and Dependency Injection

Опубликовано: 29 Сентябрь 2024
на канале: Laravel Daily
59,860
2k

A lot is written on the syntax of dependency injections and services. But let's talk about WHY and WHEN to use them, what are the actual benefits and in what cases.

Video is based on a collaborative article from our team: https://quickadminpanel.com/blog/lara...

A bit more about the structure of Laravel projects - you can find in my online course "How to Structure Laravel Project": https://laraveldaily.teachable.com/p/...