Skip to content

Commit

Permalink
[Laracrumbs] Fixed bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
blackdrago committed Jun 11, 2018
1 parent c039af8 commit 81c541e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Console/Commands/ShowLaracrumbs.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ class ShowLaracrumbs extends Command
public function __construct()
{
parent::__construct();
$this->laracrumbs = Laracrumb::all();
$this->maps = LaracrumbMap::all();
}

/**
Expand 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.");
}
Expand Down

0 comments on commit 81c541e

Please sign in to comment.