/ config / breadcrumbs.php
breadcrumbs.php
 1  <?php
 2  
 3  return [
 4  
 5      /*
 6      |--------------------------------------------------------------------------
 7      | View Name
 8      |--------------------------------------------------------------------------
 9      |
10      | Choose a view to display when Breadcrumbs::render() is called.
11      | Built in templates are:
12      |
13      | - 'breadcrumbs::bootstrap5'  - Bootstrap 5
14      | - 'breadcrumbs::bootstrap4'  - Bootstrap 4
15      | - 'breadcrumbs::bulma'       - Bulma
16      | - 'breadcrumbs::foundation6' - Foundation 6
17      | - 'breadcrumbs::json-ld'     - JSON-LD Structured Data
18      | - 'breadcrumbs::materialize' - Materialize
19      | - 'breadcrumbs::tailwind'    - Tailwind CSS
20      | - 'breadcrumbs::uikit'       - UIkit
21      |
22      | Or a custom view, e.g. '_partials/breadcrumbs'.
23      |
24      */
25  
26      'view' => 'breadcrumbs::tailwind',
27  
28      /*
29      |--------------------------------------------------------------------------
30      | Breadcrumbs File(s)
31      |--------------------------------------------------------------------------
32      |
33      | The file(s) where breadcrumbs are defined. e.g.
34      |
35      | - base_path('routes/breadcrumbs.php')
36      | - glob(base_path('breadcrumbs/*.php'))
37      |
38      */
39  
40      'files' => base_path('routes/breadcrumbs.php'),
41  
42      /*
43      |--------------------------------------------------------------------------
44      | Exceptions
45      |--------------------------------------------------------------------------
46      |
47      | Determine when to throw an exception.
48      |
49      */
50  
51      // When route-bound breadcrumbs are used but the current route doesn't have a name (UnnamedRouteException)
52      'unnamed-route-exception' => true,
53  
54      // When route-bound breadcrumbs are used and the matching breadcrumb doesn't exist (InvalidBreadcrumbException)
55      'missing-route-bound-breadcrumb-exception' => true,
56  
57      // When a named breadcrumb is used but doesn't exist (InvalidBreadcrumbException)
58      'invalid-named-breadcrumb-exception' => true,
59  
60      /*
61      |--------------------------------------------------------------------------
62      | Classes
63      |--------------------------------------------------------------------------
64      |
65      | Subclass the default classes for more advanced customisations.
66      |
67      */
68  
69      // Manager
70      'manager-class' => Diglactic\Breadcrumbs\Manager::class,
71  
72      // Generator
73      'generator-class' => Diglactic\Breadcrumbs\Generator::class,
74  
75  ];