tabuna / breadcrumbs

Laravel Breadcrumbs - An easy way to add breadcrumbs to your @Laravel app.
https://github.com/tabuna/breadcrumbs
MIT License
339 stars 20 forks source link

Added blade component #13

Closed tabuna closed 3 years ago

tabuna commented 3 years ago

Hey. I think it would be nice to have a component for determining breadcrumbs directly from the package.

It would be a straightforward definition, for example:

<x-tabuna-breadcrumbs/>

To define classes of list items, you can specify:

<x-tabuna-breadcrumbs
  class="item"
  active="active"
/>

You can also pass parameters:

<x-tabuna-breadcrumbs
    parameters="['value 1', 'value 2', 'value 3']"
/>

And call named routes explicitly:

<x-tabuna-breadcrumbs
    route="static"
/>
codecov-commenter commented 3 years ago

Codecov Report

Merging #13 into master will increase coverage by 0.31%. The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master      #13      +/-   ##
============================================
+ Coverage     97.91%   98.23%   +0.31%     
- Complexity       35       41       +6     
============================================
  Files             7        8       +1     
  Lines            96      113      +17     
============================================
+ Hits             94      111      +17     
  Misses            2        2              
Impacted Files Coverage Δ Complexity Δ
src/BreadcrumbsComponent.php 100.00% <100.00%> (ø) 5.00 <5.00> (?)
src/BreadcrumbsServiceProvider.php 100.00% <100.00%> (ø) 3.00 <1.00> (+1.00)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update bb5b3d6...39ea8b4. Read the comment docs.