Laravel Service Providers: All You Need to Know

preview_player
Показать описание
What are Service Providers? How to use them? When/how to create your own one? Difference between register() and boot() methods? All the answers in this video.

- - - - -
Support the channel by checking out our products:
Рекомендации по теме
Комментарии
Автор

I cant thank you enough for the service you did to laravel comunity. When i search for something in laravel i wish i would come across a video made by you...

elfzfqr
Автор

at this point, your videos gonna be my breakfast before going to work lol. thanks for sharing

abidkhairy..
Автор

I like the way you deliver information. I like to have videos like this run while I am doing physical tasks like making breakfast. I listen and glance at the screen occasionally to soak up possibilities. Sometimes I will stop what I'm doing, rewind a bit, and focus in more detail. Other delivery types require you to follow along with the coding requiring too much focus to multitask.

I find it helpful when learning new languages to be able to scan new approaches while multitasking. It kind of primes my mind to know what is possible so when I need that approach, I know it exists and go study how to implement it.

Laravel is so feature rich it is easy to do things because someone said do it this way and not really know why you are doing it. This particular video is really helpful to understand why.

ronpalmer
Автор

Love those explanations about the docs. Most of the times when somebody explains you instead of reading you understand the concept more. Please make more such video's.

beatnu
Автор

Really appreciate your topic selection. Exceptional content.

suhaibts
Автор

I'm so happy I found your channel. Your comment is making me a better developer

bigollie
Автор

I've been making my own packages now for a couple of years, even though they're not intended to be shared externally I like the process for compartmentalising aspects of my projects, and it makes bits easier to share between projects too. Would be good if you could do a video on making packages, just to make sure i'm still doing it all right :)

AndyTalbot
Автор

My first mentioned of service provider was in Domain Driven Laravel book before then I used to ignore service providers. This video take it more deeper

adesanoyesamson
Автор

Your videos are the best for explaining the concept with practical real world examples.

CometHajjar
Автор

Fantastic. “Convert into more practical, more readable human language with {real life} examples”. An entire movement can be created on this idea.Thanks and keep it up.

shofada
Автор

Thank you very much for exposing this topic, it is very important to know what is the use case to make a more standard code, greetings from Panama, keep up the good work.

abelenocrodriguez
Автор

Appreciate the work you put into to this. Even though I am experienced with Laravel I learn new things everyday thanks to your videos

vzlamrbeastfan
Автор

THX a lot for this explanation, ihope you explain to us where and in wich projects to use "API" and where to use the old "Database tables" to get the data ...

ChangeYourLifeForever
Автор

Found out dependency injection is not limited to service providers. You can actually call any method in your application using dependency injection. You can also bind any class name or interface name to an initialized object. For example, if you had several types of posts, but wanted to grab any injected post, or anything that resembles a post, you could have each model implement (PostThing) then use (PostThing) with implicit route binding. To take it a step further, you can call your methods using App::call to invoke a method with DI. There is so much to learn from the service provider architecture!

wadecodez
Автор

Hello dear Povilas,
This video helped me a lot to learn more about the AppServiceProviders. Because I skipped the entire Architecture Concept chapter in laravel docs while learning. You know, it was kinda difficult for me to understand those concepts.

By the way, it would be great if you can refer me to any of your playlist that explicitly covers the documentation part of laravel.

Unfortunately I couldn’t find any specific playlist for that in this channel.
Thanks!

alnahian
Автор

In my opinion using the register() method is kind of a "must", because in every well structured application there are always interfaces to bind to actual implementation classes

eleftrik
Автор

Thank you for your video. Could you explain the Service Container in a new video? What is it and why do we need it?

hamidreza-mozhdeh
Автор

Wonderful video! Keep up the great work

RichardTippin
Автор

awesome, please do talk about service containers too👌

dbones-aow
Автор

Povilas, would you be able to approach the concept of multi-tenancy with multi-databases? I am studying this concept for a project but I am stuck. In his 'Practical Roles and Permissions in Laravel' course I was able to understand the basic multi-tenancy process, but I believe that I need to broaden my understanding of Laravel's request lifecycle and know WHERE I interfere to switch connections to the database for their respective tenant. I'm sorry for the long text, but I believe I can learn anything from you by explaining the topic. I'm sorry for the long text and thanks for another clarifying video.

Claudio_Pereira