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 0117df1 commit d40473dCopy full SHA for d40473d
src/CacheFallbackServiceProvider.php
@@ -4,6 +4,7 @@
4
5
use Illuminate\Cache\CacheServiceProvider;
6
use Illuminate\Cache\MemcachedConnector;
7
+use Illuminate\Cache\Console\ClearCommand;
8
9
class CacheFallbackServiceProvider extends CacheServiceProvider
10
{
@@ -48,4 +49,17 @@ public function register()
48
49
50
$this->registerCommands();
51
}
52
+
53
+ /**
54
+ * Register the cache related console commands.
55
+ *
56
+ * @return void
57
+ */
58
+ public function registerCommands()
59
+ {
60
+ $this->app->singleton('command.cache.clear', function ($app) {
61
+ return new ClearCommand($app['cache']);
62
+ });
63
+ $this->commands('command.cache.clear');
64
+ }
65
0 commit comments