How To Bind an Interface to a Class in Laravel

preview_player
Показать описание
Learn how to bind a concrete implementation of a class to an interface in Laravel.

We'll use a service provider to tell Laravel to automatically give a specific implementation of an interface when resolving through the container.

Thumbnail background photo by Suzy Hazelwood from Pexels
Комментарии
Автор

One of the best explanations of using Interface I’ve seen. Good job 👏

chrismellor
Автор

Good video on laravel dependency injection with interface.
Could be a tiny bit shorter, maybe 5 mins shorter. OVerall nice tutorial.

BsiennKhan
Автор

Remember: never use env() helper function outside config files

samubella