Breadcrumb component for Laravel, Livewire, TallStack

Overview

Packagist Downloads GitHub license Twitter

WireUi Breadcrumbs

WireUi Breadcrumbs Tests

🔥 Breadcrumbs

This package provides a beautiful breadcrumbs component, with a simple and easy way to define your breadcrumbs.
You can define it in routes or full page livewire components.

WireUi Breadcrumbs

📚 Get Started

Prerequisites:

Optional

If you want to use the default breadcrumbs component, you need to install these packages.

Install

composer require wireui/breadcrumbs

Using Tailwind?

Add the breadcrumbs path to the content of your Tailwind config file.

/** @type {import('tailwindcss').Config} */
module.exports = {
    ...
    content: [
        './vendor/wireui/breadcrumbs/src/**/*.php',
    ],
    ...
}

How to use it?

You can define it on routes by calling the breadcrumbs method in the route or the livewire component.
This method accepts a callable function that returns the Trail instance.

Dependency Injection

The callable function can resolve all dependency injections, like classes, services, models, etc.

use Illuminate\Support\Facades\Route;
use WireUi\Breadcrumbs\Trail;

Route::get('/users/{user}', Index::class)
    ->breadcrumbs(function (
        Trail $trail,
        User $user,
        Request $request,
        Foo $foo
    ) {
        return $trail
            ->push('Users', route('users'))
            ->push('View');
    })
    ->name('users.view');

Routes

You can define your breadcrumbs in the routes

use Illuminate\Support\Facades\Route;
use WireUi\Breadcrumbs\Trail;

Route::get('/users/create', Index::class)
    ->breadcrumbs(function (Trail $trail) {
        return $trail
            ->push('Users', route('users'))
            ->push('Create');
    })
    ->name('users.create');

Livewire Components

You can define your breadcrumbs in the livewire components.
The breadcrumbs in the livewire components is reactive

<?php

namespace App\Http\Livewire;

use Livewire\Component;
use WireUi\Breadcrumbs\Trail;

class Index extends Component
{
    ...

    public function breadcrumbs(Trail $trail): Trail
    {
        return $trail
            ->push('Users', route('users'))
            ->push('Create 1');
    }

    ...
}

Rendering

Just add the breadcrumbs component in your layout

<x-breadcrumbs />

Publish (Optional)

php artisan vendor:publish --tag="wireui.breadcrumbs.config"
php artisan vendor:publish --tag="wireui.breadcrumbs.views"

📣 Follow the author

Stay informed about WireUI, follow @ph7jack on Twitter.

You will you see all the latest news about features, ideas, discussions, and more...

💡 Philosophy

WireUI Breadcrumbs is always FREE to anyone who would like to use it. You can use the Breadcrumbs in your laravel project.

This project is created PH7-Jack, and it is maintained by the author with the help of the community.

All contributions are welcome!

📝 License

MIT

You might also like...
Laravel Livewire full page component routing.

Laravel Livewire Routes Laravel Livewire full page component routing. This package allows you to specify routes directly inside your full page Livewir

Laravel Livewire form component with declarative Bootstrap 5 fields and buttons.

Laravel Livewire Forms Laravel Livewire form component with declarative Bootstrap 5 fields and buttons. Requirements Bootstrap 5 Installation composer

Livewire component that brings Spotlight/Alfred-like functionality to your Laravel application.
Livewire component that brings Spotlight/Alfred-like functionality to your Laravel application.

About LivewireUI Spotlight LivewireUI Spotlight is a Livewire component that provides Spotlight/Alfred-like functionality to your Laravel application.

A TALL-based Laravel Livewire component to replace the (multiple) select HTML input form with beautiful cards.
A TALL-based Laravel Livewire component to replace the (multiple) select HTML input form with beautiful cards.

TALL multiselect cards A TALL-based Laravel Livewire component to replace the (multiple) select HTML input form with beautiful cards. Table of content

Laravel Livewire component to show Events in a good looking monthly calendar
Laravel Livewire component to show Events in a good looking monthly calendar

Livewire Calendar This package allows you to build a Livewire monthly calendar grid to show events for each day. Events can be loaded from within the

Livewire component that brings Spotlight/Alfred-like functionality to your Laravel application.
Livewire component that brings Spotlight/Alfred-like functionality to your Laravel application.

About Wire Elements Spotlight Wire Elements Spotlight is a Livewire component that provides Spotlight/Alfred-like functionality to your Laravel applic

A dynamic table component for Laravel Livewire - For Slack access, visit:
A dynamic table component for Laravel Livewire - For Slack access, visit:

A dynamic Laravel Livewire component for data tables. Bootstrap 4 Demo | Bootstrap 5 Demo | Tailwind Demo | Demo Repository Installation You can insta

A dynamic Laravel Livewire component for multi steps form
A dynamic Laravel Livewire component for multi steps form

Livewire component that provides you with a wizard that supports multiple steps form while maintaining state.

A dynamic Laravel Livewire component for tab forms
A dynamic Laravel Livewire component for tab forms

Livewire component that provides you with a tabs that supports multiple tabs form while maintaining state.

An advanced datatable component for Laravel Livewire.
An advanced datatable component for Laravel Livewire.

Livewire Smart Table An advanced, dynamic datatable component with pagination, sorting, and searching including json data. Installation You can instal

Livewire component that provides you with a modal that supports multiple child modals while maintaining state.
Livewire component that provides you with a modal that supports multiple child modals while maintaining state.

About LivewireUI Modal LivewireUI Modal is a Livewire component that provides you with a modal that supports multiple child modals while maintaining s

Livewire component that provides you with a modal that supports multiple child modals while maintaining state.
Livewire component that provides you with a modal that supports multiple child modals while maintaining state.

About Wire Elements Modal Wire Elements Modal is a Livewire component that provides you with a modal that supports multiple child modals while maintai

Livewire component for dependant and/or searchable select inputs
Livewire component for dependant and/or searchable select inputs

Livewire Select Livewire component for dependant and/or searchable select inputs Preview Installation You can install the package via composer: compos

Render a Livewire component on a specific target in the DOM.

Livewire Portals Render a Livewire component on a specific target in the DOM. Install THIS PACKAGE IS STILL IN DEVELOPMENT, TO USE, PLEASE ADD THE FOL

Livewire component to show records according to their current status
Livewire component to show records according to their current status

Livewire Status Board Livewire component to show records/data according to their current status Preview Installation You can install the package via c

This package allows you to render livewire components like a blade component, giving it attributes, slots etc

X-livewire This package allows you to render livewire components like a blade component, giving it attributes, slots etc. Assuming you wanted to creat

A TALL (Tailwind CSS, Alpine.js, Laravel and Livewire) Preset for Laravel
A TALL (Tailwind CSS, Alpine.js, Laravel and Livewire) Preset for Laravel

Laravel TALL Preset A front-end preset for Laravel to scaffold an application using the TALL stack, jumpstarting your application's development. If yo

Laravel starter kit with Livewire & Bootstrap 5 auth scaffolding.

Laravel Livewire Auth Laravel starter kit with Livewire & Bootstrap 5 auth scaffolding. Requirements NPM Installation Create a new Laravel app: larave

Basic Crud Generator (With Code Files, like GII (YII2)) Using Laravel, Livewire and Tailwind CSS
Basic Crud Generator (With Code Files, like GII (YII2)) Using Laravel, Livewire and Tailwind CSS

LiveCrud Live Crud Generator. This package generates Basic Crud with Livewire. Features Generate Complete Crud With Livewire Component and Blade Files

Releases(v1.0.0)
Owner
WireUi
TallStack components
WireUi
Integrating Laravel into WordPress

WordPress Laravel Bootstrap A WordPress plugin helps you use functions, methods, libraries of Laravel in any WordPress projects Requiments Laravel >=

Duc Le 54 Feb 15, 2022
Wordpress integrated with Laravel via Composer. Together, but independents.

Wordpress integrated with Laravel via Composer. Atention! The branch master is no longer manteined. Now I'm working on branch light. Not booting Larav

Bruno Barros 20 Nov 29, 2022
Seamlessly integrate Wordpress with Laravel.

Documentation What is this? This is your standard Laravel install but with a few little extras ?? . Koselig is your gateway to Wordpress from Laravel.

Koselig 64 Dec 28, 2022
Use WordPress backend with Laravel or any PHP application

A collection of Model classes that allows you to get data directly from a WordPress database. Corcel is a collection of PHP classes built on top of El

Corcel PHP 3.9k Dec 29, 2022
Brings Laravel's great template engine, Blade, to WordPress

###This plugin is deprecated in favor of ekandreas/bladerunner WordPress Blade Brings Laravel's great template engine, Blade, to WordPress. Just insta

Mikael Mattsson 150 Nov 29, 2022
Add theming support to your Laravel 5.* projects

Laravel Theme Add theming support to your Laravel 5.* projects. Features Custom theme locations Support for theme inheritence with theme fallback Them

Karlo Mikus 70 Feb 5, 2022
The WordPress theme powered by the Laravel Framework.

Laravel in WordPress Theme Laravel is a web application framework with expressive, elegant syntax. It's one of the most popular PHP frameworks today.

null 201 Dec 11, 2022
Use WordPress backend with Laravel or any PHP application

A collection of Model classes that allows you to get data directly from a WordPress database. Corcel is a collection of PHP classes built on top of El

Corcel PHP 3.9k Jan 7, 2023
The WordPress filter, action system in Laravel

Laravel Hooks The WordPress filters, actions system in Laravel. About An action interrupts the code flow to do something, and then returns back to the

Md Ahsanul Haque Millat 31 Dec 7, 2022
Laravel-comments-livewire - Livewire components for the laravel-comments package

Associate comments and reactions with Eloquent models This package contains Livewire components to be used with the spatie/laravel-comments package. S

Spatie 15 Jan 18, 2022