From what I've read bindShared() was introduced in 4.1 as a short cut replacement for share.
$app['someService'] = $app->share(function() {
return new Foo;
});
// Can be reduced to
$app->bindShared('someService', function() {
return new Foo;
});
http://alexrussell.me.uk/laravel-cheat-sheet/ This cheat sheet was pretty declarative and awesome. It made everything clear. I know it's too old, and I've already known the answer too long ago, but here it is for those interested.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community