raystech /
laravel-starter-kit
| 1 | <?php |
||
| 2 | |||
| 3 | // Home |
||
| 4 | Breadcrumbs::for('home', function ($trail) { |
||
|
0 ignored issues
–
show
|
|||
| 5 | $trail->push('Home', route('home')); |
||
| 6 | }); |
||
| 7 | |||
| 8 | // Property |
||
| 9 | Breadcrumbs::for('rt-admin.posts.index', function ($trail) { |
||
| 10 | $trail->parent('home'); |
||
| 11 | $trail->push('Properties', route('rt-admin.posts.index')); |
||
| 12 | }); |
||
| 13 | |||
| 14 | // Property > Add New |
||
| 15 | Breadcrumbs::for('rt-admin.posts.create', function ($trail) { |
||
| 16 | $trail->parent('home'); |
||
| 17 | $trail->push('Properties', route('rt-admin.posts.index')); |
||
| 18 | $trail->push('Add New', route('rt-admin.posts.index')); |
||
| 19 | }); |
||
| 20 | |||
| 21 | // Property > Show |
||
| 22 | Breadcrumbs::for('rt-admin.posts.show', function ($trail, $post) { |
||
| 23 | $trail->parent('home'); |
||
| 24 | $trail->push('Properties', route('rt-admin.posts.index')); |
||
| 25 | $trail->push($post->post_title, route('rt-admin.posts.index')); |
||
| 26 | }); |
||
| 27 | |||
| 28 | // Term |
||
| 29 | Breadcrumbs::for('rt-admin.terms.index', function ($trail) { |
||
| 30 | $trail->parent('home'); |
||
| 31 | $trail->push('Term : '.title_case(request()->get('taxonomy')), route('rt-admin.terms.index')); |
||
| 32 | }); |
||
| 33 | |||
| 34 | // Home > About |
||
| 35 | Breadcrumbs::for('about', function ($trail) { |
||
| 36 | $trail->parent('home'); |
||
| 37 | $trail->push('About', route('about')); |
||
| 38 | }); |
||
| 39 | |||
| 40 | // Home > Blog |
||
| 41 | Breadcrumbs::for('blog', function ($trail) { |
||
| 42 | $trail->parent('home'); |
||
| 43 | $trail->push('Blog', route('blog')); |
||
| 44 | }); |
||
| 45 | |||
| 46 | // Home > Blog > [Category] |
||
| 47 | Breadcrumbs::for('category', function ($trail, $category) { |
||
| 48 | $trail->parent('blog'); |
||
| 49 | $trail->push($category->title, route('category', $category->id)); |
||
| 50 | }); |
||
| 51 | |||
| 52 | // Home > Blog > [Category] > [Post] |
||
| 53 | Breadcrumbs::for('post', function ($trail, $post) { |
||
| 54 | $trail->parent('category', $post->category); |
||
| 55 | $trail->push($post->title, route('post', $post->id)); |
||
| 56 | }); |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths