diglactic / laravel-breadcrumbs

Laravel Breadcrumbs - A simple Laravel-style way to create breadcrumbs.
https://packagist.org/packages/diglactic/laravel-breadcrumbs
MIT License
868 stars 63 forks source link

Breadcrumb not found with name ... #13

Closed Schwenniii closed 3 years ago

Schwenniii commented 3 years ago

I have migrated from DaveJamesMiller\Breadcrumbs

on Local Develoment it runs fine but on Production he knows no breadcrump since i migrate. the breadcrumbs are defined under default/breadcrumbs.php

I have try: " If not, try running php artisan config:clear (or manually delete bootstrap/cache/config.php) or update the path in config/breadcrumbs.php.."

delete all cached views delete routes cache

but nothing helps

Any Ideaa what the Problem is?

shengslogar commented 3 years ago

Are you getting any errors? Can you post a copy of your config and breadcrumb files?

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

Schwenniii commented 3 years ago

sorry for the late answer i was sick

yes i get "Breadcrumb not found with name "category""

on routes/breadcrumbs.php

/**

config/breadcrumbs.php is default nothing changed

'files' => base_path('routes/breadcrumbs.php'),

shengslogar commented 3 years ago

Hm, can you show me how you're calling Breadcrumbs::render?

Hope you're feeling better!

Schwenniii commented 3 years ago

on show.blade.php

@section('breadcrumbs', Breadcrumbs::render('category', $category))

and the section on detail

{{-- Breadcumbs Section --}}

Schwenniii commented 3 years ago

strange i have made a routine composer update and it's work now nothing else changed

Thx for the help. Bottom the composer log

Lock file operations: 0 installs, 16 updates, 0 removals

shengslogar commented 3 years ago

Sometimes running composer dump-autoload (which composer update does) will do the trick! Glad you got this working.