4 ms·
Laravel encourages DI via Service Containers: https://laravel.com/docs/5.5/container https://laravel.com/docs/5.5/container And, Laravel static methods (as you
by cosmok 9y ago
Laravel encourages DI via Service Containers: https://laravel.com/docs/5.5/container https://laravel.com/docs/5.5/container
And, Laravel static methods (as you see in the docs as Facades) are not truly static (and testable/mockable).
https://laravel.com/docs/5.5/facades#facades-vs-dependency-injection https://laravel.com/docs/5.5/facades#facades-vs-dependency-i...
http://usman.it/laravel-4-uses-static-not-true/ http://usman.it/laravel-4-uses-static-not-true/
- akoncius 9y agothanks for response, will read it!