-
Notifications
You must be signed in to change notification settings - Fork 20
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
Argument 2 passed to App\Providers\BreadcrumbsServiceProvider #20
Comments
Hey, @fbc, I have not been able to reproduce the problem. My route opens perfectly: |
@tabuna I'm using Laravel 7 and ver 1.3.1 of your package. |
@fbc I'm not sure if you figured this out yet, but see #10 (comment). In your case, the public function index(Project $project) { ... } to avoid the error you are getting. I'm also running the same version as you. |
@fbc
|
Hey @misha1. Your mistake is not the same as that of the topic author. use App\Http\Controllers\PlastinkyController;
Route::get('/plastinky/all/{id}', [PlastinkyController::class, 'ShowOne'])
->name('plastinky-one')
->breadcrumbs(
fn(Trail $trail, $id) => $trail->parent('plastinky')
->parent('plastinky-data')
->push('VIEW', route('plastinky-one', $id))
); |
I'm getting this error:
In app/Providers/BreadcrumbsServiceProvider.php
in resources/views/navigation/breadcrumbs.blade.php
I can't seem to figure out what I'm doing wrong. It works fine until I visit
project.bill.index
My routes are defined as:
The text was updated successfully, but these errors were encountered: