Package Data | |
---|---|
Maintainer Username: | crumby |
Maintainer Contact: | avassilenko2@gmail.com (Andrei Vassilenko) |
Package Create Date: | 2017-08-14 |
Package Last Update: | 2017-09-22 |
Language: | PHP |
License: | MIT License |
Last Refreshed: | 2024-12-17 03:06:18 |
Package Statistics | |
---|---|
Total Downloads: | 33 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 0 |
Total Forks: | 0 |
Total Open Issues: | 0 |
> composer require crumby/breadcrumbs
> php artisan vendor:publish --provider="Crumby\Breadcrumbs\BreadcrumbsServiceProvider" --tag=config
> php artisan vendor:publish --provider="Crumby\Breadcrumbs\BreadcrumbsServiceProvider" --tag=lang
File: config/app.php
'providers' => [
......................
'Crumby\Breadcrumbs\BreadcrumbsServiceProvider',
........................
];
'aliases' => [
......................
'Breadcrumbs' => 'Crumby\Breadcrumbs\Facades\Breadcrumbs',
......................
];
<?php
return [
'routes' => [
'package' => [
'childOf' => [
'route' => 'packages'
]
],
'article' => [
'childOf' => [
'route' => 'package'
]
],
]
];
class StaticPagesController extends Controller {
public function __construct()
{
...........................
$this->middleware('crumbs');
...........................
}
}
{!! $breadcrumbs->render() !!}
API documentation