18 lines
593 B
PHP
18 lines
593 B
PHP
<?php
|
|
|
|
use App\Models\Brand;
|
|
use Diglactic\Breadcrumbs\Breadcrumbs;
|
|
use Diglactic\Breadcrumbs\Generator;
|
|
|
|
// * BRANDS
|
|
Breadcrumbs::for('brands.index', function (Generator $trail) {
|
|
$trail->push(trans('Marques'), route('brands.index'));
|
|
});
|
|
Breadcrumbs::for('brands.create', function (Generator $trail) {
|
|
$trail->parent('brands.index');
|
|
$trail->push(trans('Création'), route('brands.create'));
|
|
});
|
|
Breadcrumbs::for('brands.edit', function (Generator $trail, Brand $brand) {
|
|
$trail->parent('brands.index');
|
|
$trail->push(trans('Édition'), route('brands.edit', $brand));
|
|
});
|