breadcrumbs.php 2.3 KB

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