Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not giving any breadcrumbs #20

Open
Adiconquerors opened this issue Jun 25, 2024 · 3 comments
Open

Not giving any breadcrumbs #20

Adiconquerors opened this issue Jun 25, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@Adiconquerors
Copy link

I have installed & Setup this package as per instructions and installed Tabuna package

Here is my sample route:
Route::get('settings/{slug}/edit', [SettingsController::class, 'edit']) ->breadcrumbs(fn (Trail $trail) => $trail->push('Home', route('home')) );

But it is not giving any route to display in vueJs file.

Iam using Laravel 10 and Vue3

Any additional steps to work this package?

Thanks,

  • Adi
@RobertBoes
Copy link
Owner

The package should share the breadcrumbs for that route in the breadcrumbs prop. So when you visit /settings/[...]/edit it would share the breadcrumbs for that page. You can use Vue devtools to check if the props are present.

If it's still not working as expected, could you share a minimal reproduction? Preferably a repo with a fresh Laravel app, having a separate commit for the changes you'd make to add the breadcrumbs.

@Adiconquerors
Copy link
Author

Hi,

Thanks for the response. I checked in Vue devtools, but there is no props value as you mentioned in readme file

image

@RobertBoes
Copy link
Owner

Hmm, seems like this is happening because the Tabuba middleware is executed after the middleware from this package. I'll have to see and figure out how to fix it.

@RobertBoes RobertBoes added the bug Something isn't working label Jun 26, 2024
@RobertBoes RobertBoes self-assigned this Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants