Skip to content

Commit 4c1febd

Browse files
committed
Update to resolve the database store from the container
1 parent 56f2190 commit 4c1febd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/ServiceProvider.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,9 @@ public function boot()
3636
$config = $app->make(Config::class);
3737

3838
if ($config->get('laravel-rollout.storage') === 'database') {
39-
$connection = $app->make(ConnectionInterface::class);
40-
$encrypter = $app->make(Encrypter::class);
4139
$table = $config->get('laravel-rollout.table');
4240

43-
$repository = new Repository(new DatabaseStore($connection, $encrypter, $table));
41+
$repository = new Repository($app->make(DatabaseStore::class, ['table' => $table]));
4442
$driver = new Cache($repository);
4543
} else {
4644
$driver = new Cache($app->make('cache.store'));

0 commit comments

Comments
 (0)