Skip to content
Version 4.x
Theme

Breadcrumbs Blade component

View as Markdown

On this page

#Introduction

The breadcrumbs component is used to render a simple, linear navigation that informs the user of their current location within the application:

<x-filament::breadcrumbs :breadcrumbs="[
    '/' => 'Home',
    '/dashboard' => 'Dashboard',
    '/dashboard/users' => 'Users',
    '/dashboard/users/create' => 'Create User',
]" />
Breadcrumbs navigation

The keys of the array are URLs that the user is able to click on to navigate, and the values are the text that will be displayed for each link.

Caution

If you are using user-controlled URLs as array keys, validate their schemes using Str::sanitizeUrl() before rendering them. HTML escaping alone does not prevent a javascript: URL from executing code when clicked.

Documentation menu Star on GitHub