Support the ongoing development of Laravel.io →
posted 10 years ago
IOC
Last updated 2 years ago.
0

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;
});
Last updated 2 years ago.
0

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.

Last updated 8 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Omranic omranic Joined 15 May 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.