We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56f2190 commit 4c1febdCopy full SHA for 4c1febd
src/ServiceProvider.php
@@ -36,11 +36,9 @@ public function boot()
36
$config = $app->make(Config::class);
37
38
if ($config->get('laravel-rollout.storage') === 'database') {
39
- $connection = $app->make(ConnectionInterface::class);
40
- $encrypter = $app->make(Encrypter::class);
41
$table = $config->get('laravel-rollout.table');
42
43
- $repository = new Repository(new DatabaseStore($connection, $encrypter, $table));
+ $repository = new Repository($app->make(DatabaseStore::class, ['table' => $table]));
44
$driver = new Cache($repository);
45
} else {
46
$driver = new Cache($app->make('cache.store'));
0 commit comments