Skip to content

Commit

Permalink
Set the capsules list config as an array
Browse files Browse the repository at this point in the history
Closes #901
  • Loading branch information
ifox committed May 15, 2021
1 parent 2b86782 commit 2b5b07a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/CapsulesServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
use A17\Twill\Services\Capsules\Manager;
use A17\Twill\Services\Routing\HasRoutes;
use Illuminate\Foundation\Support\Providers\RouteServiceProvider;
use Illuminate\Routing\Router;

class CapsulesServiceProvider extends RouteServiceProvider
{
Expand All @@ -23,7 +22,7 @@ protected function mergeTwillConfig()

$this->app
->make('config')
->set('twill.capsules.list', $this->getCapsuleList());
->set('twill.capsules.list', $this->getCapsuleList()->toArray());

$this->app->make('config')->set('twill.capsules.loaded', true);
}
Expand Down

0 comments on commit 2b5b07a

Please sign in to comment.