how to add extra breadcrumbs work
i visit all website and documentation and also youtube i search about how to add extra breadcrumbs in resource i find some method like getBreadcrumbs() function but when defind it in new page i don't no how to add the like to previous page please help to make the day good thanks
Solution:Jump to solution
public function getBreadcrumbs(): array
{
// dd(request());
// dd(request()->getRequestUri());
// dd(rtrim(dirname(request()->getRequestUri()), '/'));...
1 Reply
Solution
public function getBreadcrumbs(): array
{
// dd(request());
// dd(request()->getRequestUri());
// dd(rtrim(dirname(request()->getRequestUri()), '/'));
return [
rtrim(dirname(rtrim(dirname(request()->getRequestUri()), '/')), '/')=> 'البرامج',
rtrim(dirname(request()->getRequestUri()), '/') => 'عرض',
request()->getRequestUri() => 'نمودج البرنامج',
];
} this solved problem anyway