Laravel’s Service Container Explained in 1 Minute

preview_player
Показать описание
So, what is a Laravel Service Container? Know it in 50 seconds!

Рекомендации по теме
Комментарии
Автор

hoping you guys would have a video that's REALLY REALLY IN-DEPTH with Service Container, all the tricks and tips you can do with it.

gethermedel
Автор

I wish this video had better fps, check your export settings.
I loved the video. service container is a learn as you go thing, this will help a lot of new developers.

ajzack
Автор

good container very reuse object for everyone

vedsico
Автор

Thank you for the valuable information. Can we use this structure with model route binding?

Let’s say I have a class called Post.php.

Instead of using it like this:


Route::get('/posts', function(){
$cachablePages = app("Pages");
return $cachablePages->all();
});


Can I use it like this?

Route::get('/posts', function(CachablePages $cachablePages){
return $cachablePages->all();
});

Note: CachablePages gets pages from Redis.

webpulseify
Автор

It's like a Global on steroids :-)

DanielFeldbrugge
Автор

please refund me, I requested refund 5 minutes after my subscription request.

mahaar