Skip to content

I can not send parameter to Breadcrumb #25

@sametsahin

Description

@sametsahin

Dear All Friend,

Firstly I want to say thank you for your help.

I am using breadcrumbs in my project. There is no problem in pages where I dont send parameter. But when i want to send parameter, I dont taking anything. You can see below detail code in my project

BreadCrumbsServiceProvider

require base_path('routes/breadcrumbs.php'); // (I regestered this file in config/app)

breadcrumbs.php

// Setting ->There is no problem
Breadcrumbs::for('admin.setting.index', fn(Trail $trail) => $trail
    ->parent('admin.dashboard')
    ->push('Site Ayarları', route('admin.setting.index'))
);
// Client Detail->There is huge problem for me :)
Breadcrumbs::for('admin.client.detail/{id}', fn(Trail $trail, Client $client) => $trail
    ->parent('admin.musteri.index', route('admin.musteri.index'))
    ->push($client->id . ' Nolu Müşteri Detayı', route('admin.client.detail', $client->id))
);

You think, what should I do?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions