Skip to content
This repository was archived by the owner on Jul 16, 2023. It is now read-only.

Commit 64efa27

Browse files
committed
Merge pull request #141 from PeterSchumacher/master
Made Capsule instance available globally via static methods. Closes #138
2 parents b2bf337 + ecdbaba commit 64efa27

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: src/LaravelBook/Ardent/Ardent.php

+4
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,10 @@ public static function configureAsExternal(array $connection) {
446446
$db->addConnection($connection);
447447
$db->setEventDispatcher(new Dispatcher(new Container));
448448
//TODO: configure a cache manager (as an option)
449+
450+
// Make this Capsule instance available globally via static methods
451+
$db->setAsGlobal();
452+
449453
$db->bootEloquent();
450454

451455
$translator = new Translator('en');

0 commit comments

Comments
 (0)