Тёмный

How To Bind an Interface to a Class in Laravel 

EscoTech
Подписаться 1,4 тыс.
Просмотров 2,8 тыс.
50% 1

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

Опубликовано:

 

16 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 14   
@chrismellor7027
@chrismellor7027 Год назад
One of the best explanations of using Interface I’ve seen. Good job 👏
@esco_tech
@esco_tech Год назад
Thank you for the nice comments and support! 😁
@Senquiem
@Senquiem Год назад
great video, thank you
@BsiennKhan
@BsiennKhan 4 месяца назад
Good video on laravel dependency injection with interface. Could be a tiny bit shorter, maybe 5 mins shorter. OVerall nice tutorial.
@esco_tech
@esco_tech 3 месяца назад
Great suggestion!
@eslamabdallahabass5662
@eslamabdallahabass5662 Год назад
amazing
@tiberiuszabo6849
@tiberiuszabo6849 6 месяцев назад
Thanks!
@samubella
@samubella Год назад
Remember: never use env() helper function outside config files
@twentxx
@twentxx Год назад
You are mean creating a config file? But in config file we also read variable with env helper
@samubella
@samubella Год назад
@@twentxx env() helper should be used only in config files. If you wanna get something from .env you have to access it via config files so config() helper
@ziadit
@ziadit 2 года назад
Great.... Thanks
@esco_tech
@esco_tech 2 года назад
You're very welcome!
@fueqaxvk1
@fueqaxvk1 2 года назад
Really helped me, thanks
@esco_tech
@esco_tech 2 года назад
Thanks for the nice words!
Далее
Decorator Design Pattern in Laravel and PHP
19:00
Просмотров 2,9 тыс.
Using Generics with PHP
25:55
Просмотров 11 тыс.
The Tools I Use to Build Products in Laravel
19:00
Просмотров 28 тыс.
What's New in Laravel Herd 1.11
22:39
Просмотров 10 тыс.
How to use Laravel's bind and singleton methods
9:40
Postgres just got even faster
26:42
Просмотров 21 тыс.