generated from spatie/package-skeleton-laravel
-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathinertia-breadcrumbs.php
46 lines (39 loc) · 1.66 KB
/
inertia-breadcrumbs.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
use RobertBoes\InertiaBreadcrumbs\Classifier\AppendAllBreadcrumbs;
use RobertBoes\InertiaBreadcrumbs\Classifier\IgnoreSingleBreadcrumbs;
use RobertBoes\InertiaBreadcrumbs\Collectors\DiglacticBreadcrumbsCollector;
use RobertBoes\InertiaBreadcrumbs\Collectors\GretelBreadcrumbsCollector;
use RobertBoes\InertiaBreadcrumbs\Collectors\TabunaBreadcrumbsCollector;
return [
'middleware' => [
/**
* Determines if the middleware should automatically be registered by this package
* If you would like to register it yourself you should set this to false
*/
'enabled' => true,
/**
* The middleware is added to the 'web' group by default
*/
'group' => 'web',
/**
* The key of shared breadcrumbs
*/
'key' => 'breadcrumbs',
],
/**
* By default a collector for diglactic/laravel-breadcrumbs is used
* If you're using tabuna/breadcrumbs you can use TabunaBreadcrumbsCollector::class
* If you're using glhd/gretel you can use GretelBreadcrumbsCollector::class (see notes in the readme about using this package)
*/
'collector' => DiglacticBreadcrumbsCollector::class,
/**
* A classifier to determine if the breadcrumbs should be added to the Inertia response
* This can be useful if you have defined a breadcrumb route which other routes can extend, but you don't want to show single breadcrumbs
*/
'classifier' => AppendAllBreadcrumbs::class,
// 'classifier' => IgnoreSingleBreadcrumbs::class,
/**
* Whether the query string should be ignored when determining the current route
*/
'ignore_query' => true,
];