Commit 52e7b506 authored by Vipul Basapati's avatar Vipul Basapati

Solved BlogCategory and BlogTag breadcrumbs issue, they were not showing up

parent edd4edf8
<?php <?php
Breadcrumbs::register('admin.blogcategories.index', function ($breadcrumbs) { Breadcrumbs::register('admin.blogCategories.index', function ($breadcrumbs) {
$breadcrumbs->parent('admin.dashboard'); $breadcrumbs->parent('admin.dashboard');
$breadcrumbs->push(trans('menus.backend.blogcategories.management'), route('admin.blogcategories.index')); $breadcrumbs->push(trans('menus.backend.blogcategories.management'), route('admin.blogCategories.index'));
}); });
Breadcrumbs::register('admin.blogcategories.create', function ($breadcrumbs) { Breadcrumbs::register('admin.blogCategories.create', function ($breadcrumbs) {
$breadcrumbs->parent('admin.blogcategories.index'); $breadcrumbs->parent('admin.blogCategories.index');
$breadcrumbs->push(trans('menus.backend.blogcategories.create'), route('admin.blogcategories.create')); $breadcrumbs->push(trans('menus.backend.blogcategories.create'), route('admin.blogCategories.create'));
}); });
Breadcrumbs::register('admin.blogcategories.edit', function ($breadcrumbs, $id) { Breadcrumbs::register('admin.blogCategories.edit', function ($breadcrumbs, $id) {
$breadcrumbs->parent('admin.blogcategories.index'); $breadcrumbs->parent('admin.blogCategories.index');
$breadcrumbs->push(trans('menus.backend.blogcategories.edit'), route('admin.blogcategories.edit', $id)); $breadcrumbs->push(trans('menus.backend.blogcategories.edit'), route('admin.blogCategories.edit', $id));
}); });
<?php <?php
Breadcrumbs::register('admin.blogtags.index', function ($breadcrumbs) { Breadcrumbs::register('admin.blogTags.index', function ($breadcrumbs) {
$breadcrumbs->parent('admin.dashboard'); $breadcrumbs->parent('admin.dashboard');
$breadcrumbs->push(trans('menus.backend.blogtags.management'), route('admin.blogtags.index')); $breadcrumbs->push(trans('menus.backend.blogtags.management'), route('admin.blogTags.index'));
}); });
Breadcrumbs::register('admin.blogtags.create', function ($breadcrumbs) { Breadcrumbs::register('admin.blogTags.create', function ($breadcrumbs) {
$breadcrumbs->parent('admin.blogtags.index'); $breadcrumbs->parent('admin.blogTags.index');
$breadcrumbs->push(trans('menus.backend.blogtags.create'), route('admin.blogtags.create')); $breadcrumbs->push(trans('menus.backend.blogtags.create'), route('admin.blogTags.create'));
}); });
Breadcrumbs::register('admin.blogtags.edit', function ($breadcrumbs, $id) { Breadcrumbs::register('admin.blogTags.edit', function ($breadcrumbs, $id) {
$breadcrumbs->parent('admin.blogtags.index'); $breadcrumbs->parent('admin.blogTags.index');
$breadcrumbs->push(trans('menus.backend.blogtags.edit'), route('admin.blogtags.edit', $id)); $breadcrumbs->push(trans('menus.backend.blogtags.edit'), route('admin.blogTags.edit', $id));
}); });
...@@ -36,9 +36,7 @@ ...@@ -36,9 +36,7 @@
<!-- Scripts --> <!-- Scripts -->
<script> <script>
window.Laravel = <?php echo json_encode([ window.Laravel = {!! json_encode([ 'csrfToken' => csrf_token() ]) !!};
'csrfToken' => csrf_token(),
]); ?>
</script> </script>
</head> </head>
<body class="skin-{{ config('backend.theme') }} {{ config('backend.layout') }}"> <body class="skin-{{ config('backend.theme') }} {{ config('backend.layout') }}">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment