DEV Community

Discussion on: Laravel Service Container and Service Providers Explained

Collapse
 
jcarlosr profile image
Juan Ramos • Edited

Thank you for writing this. It is very useful.
I just have one question.

When you rewrite the example using the Laravel Service Container, why do you use the string 'App\Interfaces\SocialMediaService' instead of SocialMediaServiceInterface::class?

Collapse
 
fhsinchy profile image
Farhan Hasin Chowdhury

No particular reasons to be honest. I didn't even noticed until you told me.