babdev / laravel-breadcrumbs Goto Github PK
View Code? Open in Web Editor NEWAdds breadcrumb support to your Laravel applications
License: Other
Adds breadcrumb support to your Laravel applications
License: Other
Hi there!
First of all thank you for taking over this project!
I was wondering whether the following would be possible:
In a standard Eloquent Model with Controller, I have the following views:
It seems obvious that the order of breadcrumbs would be Index / Show / Edit
.
The Index
-Breadcrumb should show as the actual model name, and then it makes more sense to display the Show
-Breadcrumb as the actual id
of the model.
Visually that would mean something like
Posts
for index
Posts / 123
for show
Posts / 123 / Edit
for edit
I was able to implement that. However in terms of UX I'd like to make the structure more concise and put the model id as an independent part of the breadcrumbs for show
and edit
. Something like the following
Posts
for index (as before)Posts / 123 / Details
for show
, where 123 / Details
could be the current route (= no hyperlink)Posts / 123 / Edit
for edit
, where 123
links to show
(!)So, the parent for both show
and edit
would be index
, however...
I basically just came up with a (kind of hacky) solution while writing this (rubber-ducking for the win!).
I will just push a <a href="ROUTE_TO_SHOW">123</a> / Edit
for the edit
breadcrumb.
If there's a better solution after all, please let me know.
I'll leave this here in case anybody else comes up with the same problem.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.