Laravel: When to Use Static Methods, Services and Dependency Injection
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:
A bit more about the structure of Laravel projects - you can find in my online course “How to Structure Laravel Project“:
52 views
280
59
4 years ago 00:05:26 17
Laravel API: Be Careful When Doing Changes
5 years ago 00:03:51 18
Laravel DB Transactions: Example When/How to Use Them
5 years ago 00:10:33 52
Laravel: When to Use Static Methods, Services and Dependency Injection
5 years ago 00:03:38 9
Laravel: How to Seed New Data When Project is Live?
2 years ago 00:03:21 1
Laravel Sanctum vs Passport & when to use Laravel Sanctum - Laravel SPA Authentication
7 months ago 00:03:33 2
New in Laravel : `when()` Helper
3 years ago 00:07:03 7
How/When to Use Traits in Laravel: My Opinion
6 years ago 00:39:48 46
Maintaining Laravel
2 years ago 00:06:53 1
Laravel’s latestOfMany(): Take caution when using scopes.
6 months ago 00:06:52 1
New in Laravel 11: The when() helper
5 years ago 00:00:00 17
Making Laravel apps tenant aware using laravel-multitenancy
9 months ago 00:05:55 2
Laravel Events/Listeners: WHEN To Use Them - Practical Example
7 years ago 00:00:00 16
Security and Laravel
2 years ago 00:05:38 2
4 Things To Do When Laravel App Goes Live
2 years ago 00:10:39 3
Static Methods in Laravel/PHP: When and How?
3 years ago 00:05:23 5
Laravel Maintenance Mode: When/How to Use “php artisan down“?
5 years ago 00:03:59 14
Course Teaser: Any Questions About Laravel APIs?
5 years ago 00:07:06 16
Laravel Demo: Employee Attendance with Quick Charts
4 years ago 00:14:21 39
Laravel Code Review: Why NOT Use Repository Pattern?
4 years ago 00:01:59 1
Laravel update . (Rule::when)
3 years ago 02:02:25 20
Building a Laravel CRM API - Episode 1
5 years ago 00:09:09 18
New in Laravel 7 - Route Model Binding Improvement