From 81c541e6bc6e8b2e2a7a2881124390bc9cfbe1c7 Mon Sep 17 00:00:00 2001 From: "K. McCormick" Date: Sun, 10 Jun 2018 22:21:52 -0400 Subject: [PATCH] [Laracrumbs] Fixed bug. --- src/Console/Commands/ShowLaracrumbs.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Console/Commands/ShowLaracrumbs.php b/src/Console/Commands/ShowLaracrumbs.php index e1b980c..16076a0 100644 --- a/src/Console/Commands/ShowLaracrumbs.php +++ b/src/Console/Commands/ShowLaracrumbs.php @@ -40,8 +40,6 @@ class ShowLaracrumbs extends Command public function __construct() { parent::__construct(); - $this->laracrumbs = Laracrumb::all(); - $this->maps = LaracrumbMap::all(); } /** @@ -51,6 +49,8 @@ public function __construct() */ public function handle() { + $this->laracrumbs = Laracrumb::all(); + $this->maps = LaracrumbMap::all(); if (count($this->laracrumbs) == 0 && count($this->maps) == 0) { return $this->error("There are currently no Laracrumbs saved nor mapped Laracrumbs for routes."); }