This repository has been archived by the owner on Oct 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 416
Add arbitrary data to breadcrumbs #35
Comments
I'm also interested in this (as well as the other people who have already asked for similar things in different issues, e.g. custom icons) - wouldn't it be as simple as replacing this code with the following: public function push($title, $url = null, array $options = array())
{
$this->breadcrumbs[] = (object) array(
'title' => $title,
'url' => $url,
'options' => $options,
// These will be altered later where necessary:
'first' => false,
'last' => false,
);
} Basically, just add the third argument, and pass it into the breadcrumb. Or are there any problems that this would cause? |
Looks about right. Feel free to turn it into a PR. Cheers. |
levacic
added a commit
to levacic/laravel-breadcrumbs
that referenced
this issue
Oct 25, 2014
levacic
added a commit
to levacic/laravel-breadcrumbs
that referenced
this issue
Oct 25, 2014
levacic
added a commit
to levacic/laravel-breadcrumbs
that referenced
this issue
Oct 25, 2014
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
e.g.
breadcrumbs.php
:Custom template:
The text was updated successfully, but these errors were encountered: