diff --git a/src/Support/GretelServiceProvider.php b/src/Support/GretelServiceProvider.php index bbf1108..bb8f325 100755 --- a/src/Support/GretelServiceProvider.php +++ b/src/Support/GretelServiceProvider.php @@ -33,6 +33,7 @@ public function boot() $this->bootViews(); $this->bootBladeComponents(); $this->bootCommands(); + $this->bootCachedBreadcrumbs(); } public function register() @@ -111,4 +112,13 @@ protected function bootCommands(): self return $this; } + + protected function bootCachedBreadcrumbs(): self + { + if ($this->app->routesAreCached()) { + $this->app->make(Cache::class)->load(); + } + + return $this; + } }