Add breadcrumb support using Laravel Breadcrumbs package

- Install `diglactic/laravel-breadcrumbs` and update composer dependencies.
- Configure breadcrumbs in `config/breadcrumbs.php`.
- Define breadcrumbs for admin and site views.
- Update base admin controller to include default breadcrumb view.
This commit is contained in:
2026-07-22 21:01:09 +05:00
parent 949ffc6221
commit 0a612e72c7
19 changed files with 262 additions and 16 deletions
+125 -2
View File
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "a920317eed14f3d09c7ed37a87c65ec1",
"content-hash": "497caf2eb305e80d19ee6e7fbeffd7b7",
"packages": [
{
"name": "brick/math",
@@ -209,6 +209,76 @@
},
"time": "2024-07-08T12:26:09+00:00"
},
{
"name": "diglactic/laravel-breadcrumbs",
"version": "v10.1.0",
"source": {
"type": "git",
"url": "https://github.com/diglactic/laravel-breadcrumbs.git",
"reference": "64245821155ccfe721832898840408ee6136db31"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/diglactic/laravel-breadcrumbs/zipball/64245821155ccfe721832898840408ee6136db31",
"reference": "64245821155ccfe721832898840408ee6136db31",
"shasum": ""
},
"require": {
"facade/ignition-contracts": "^1.0",
"laravel/framework": "^10.0 || ^11.0 || ^12.0 || ^13.0",
"php": "^8.1"
},
"conflict": {
"davejamesmiller/laravel-breadcrumbs": "*"
},
"require-dev": {
"orchestra/testbench": "^8.0 || ^9.0 || ^10.0 || ^11.0",
"phpunit/phpunit": "^10.5 || ^11.5 || ^12.5",
"spatie/phpunit-snapshot-assertions": "^5.1"
},
"type": "library",
"extra": {
"laravel": {
"aliases": {
"Breadcrumbs": "Diglactic\\Breadcrumbs\\Breadcrumbs"
},
"providers": [
"Diglactic\\Breadcrumbs\\ServiceProvider"
]
}
},
"autoload": {
"psr-4": {
"Diglactic\\Breadcrumbs\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Sheng Slogar",
"email": "sheng@diglactic.com",
"role": "Maintainer"
},
{
"name": "Dave James Miller",
"email": "dave@davejamesmiller.com",
"role": "Original Creator"
}
],
"description": "A simple Laravel-style way to create breadcrumbs.",
"homepage": "https://github.com/diglactic/laravel-breadcrumbs",
"keywords": [
"laravel"
],
"support": {
"issues": "https://github.com/diglactic/laravel-breadcrumbs/issues",
"source": "https://github.com/diglactic/laravel-breadcrumbs/tree/v10.1.0"
},
"time": "2026-03-30T05:25:07+00:00"
},
{
"name": "doctrine/inflector",
"version": "2.1.0",
@@ -507,6 +577,59 @@
],
"time": "2025-03-06T22:45:56+00:00"
},
{
"name": "facade/ignition-contracts",
"version": "1.0.2",
"source": {
"type": "git",
"url": "https://github.com/facade/ignition-contracts.git",
"reference": "3c921a1cdba35b68a7f0ccffc6dffc1995b18267"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/facade/ignition-contracts/zipball/3c921a1cdba35b68a7f0ccffc6dffc1995b18267",
"reference": "3c921a1cdba35b68a7f0ccffc6dffc1995b18267",
"shasum": ""
},
"require": {
"php": "^7.3|^8.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^v2.15.8",
"phpunit/phpunit": "^9.3.11",
"vimeo/psalm": "^3.17.1"
},
"type": "library",
"autoload": {
"psr-4": {
"Facade\\IgnitionContracts\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Freek Van der Herten",
"email": "freek@spatie.be",
"homepage": "https://flareapp.io",
"role": "Developer"
}
],
"description": "Solution contracts for Ignition",
"homepage": "https://github.com/facade/ignition-contracts",
"keywords": [
"contracts",
"flare",
"ignition"
],
"support": {
"issues": "https://github.com/facade/ignition-contracts/issues",
"source": "https://github.com/facade/ignition-contracts/tree/1.0.2"
},
"time": "2020-10-16T08:27:54+00:00"
},
{
"name": "fruitcake/php-cors",
"version": "v1.4.0",
@@ -9789,5 +9912,5 @@
"php": "^8.3"
},
"platform-dev": {},
"plugin-api-version": "2.6.0"
"plugin-api-version": "2.9.0"
}