This fixes the tests.

This commit is contained in:
James Cole
2016-12-28 09:56:07 +01:00
parent 6151d4a0ec
commit 9c6a3e4ad5
4 changed files with 55 additions and 1 deletions

View File

@@ -320,6 +320,14 @@ Breadcrumbs::register(
}
);
Breadcrumbs::register(
'categories.show.all', function (BreadCrumbGenerator $breadcrumbs, Category $category) {
$breadcrumbs->parent('categories.index');
$breadcrumbs->push(e($category->name) . '(' . strtolower(trans('firefly.all_periods')) . ')', route('categories.show.all', [$category->id]));
}
);
Breadcrumbs::register(
'categories.show.date', function (BreadCrumbGenerator $breadcrumbs, Category $category, Carbon $date) {