35 lines
971 B
PHP
35 lines
971 B
PHP
<?php
|
|
// routes/breadcrumbs.php
|
|
use App\Models\Games\Game;
|
|
use App\Models\YuGiOh\YuGiOhCard;
|
|
use Diglactic\Breadcrumbs\Breadcrumbs;
|
|
use Diglactic\Breadcrumbs\Generator as BreadcrumbTrail;
|
|
|
|
// Home
|
|
Breadcrumbs::for('home', function (BreadcrumbTrail $trail) {
|
|
$trail->push(__('Home'), route('home'));
|
|
});
|
|
|
|
// Home > 404
|
|
Breadcrumbs::for('404', function (BreadcrumbTrail $trail) {
|
|
$trail->parent('home');
|
|
$trail->push(__('404 | Not found'), route('home'));
|
|
});
|
|
|
|
// Home > Vehicles
|
|
Breadcrumbs::for('vehicles', function (BreadcrumbTrail $trail) {
|
|
$trail->parent('home');
|
|
$trail->push(__('Vehicles'), route('vehicles'));
|
|
});
|
|
|
|
// Home > Login
|
|
Breadcrumbs::for('login', function (BreadcrumbTrail $trail) {
|
|
$trail->parent('home');
|
|
$trail->push(__('Login'), route('login'));
|
|
});
|
|
|
|
// Home > Dashboard
|
|
Breadcrumbs::for('dashboard', function (BreadcrumbTrail $trail) {
|
|
$trail->parent('home');
|
|
$trail->push(__('Dashboard'), route('dashboard'));
|
|
}); |