Skip to content

Commit 9c05868

Browse files
committed
Fix model cache flush to read correct config setting
1 parent 05d0b0b commit 9c05868

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Console/Commands/Flush.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ public function handle()
1313

1414
if (! $option) {
1515
cache()
16-
->store(config('laravel-model-caching:store'))
16+
->store(config('laravel-model-caching.store'))
1717
->flush();
1818

19+
$this->info("✔︎ Entire model cache has been flushed.");
20+
1921
return 0;
2022
}
2123

0 commit comments

Comments
 (0)