In this episode, we dive into customizing breadcrumb templates in our Laravel app. First, we head to the terminal and publish the package's breadcrumb views. This process copies the package-provided templates into our resources/views/vendor/breadcrumbs
directory, so we get easy access to edit them.
We then open up the published templates, choose the Tailwind version, and make a simple change — like removing the gray background. After saving, we refresh the browser, and voilà! Our customization is visible. We also discuss cleaning things up by deleting any breadcrumb templates we don't need.
Next, we explore a more advanced approach: moving the breadcrumb template out of the vendor
directory and into our own views folder (resources/views/breadcrumbs.blade.php
). We update the breadcrumbs config to point directly to our new template. After a quick page refresh, we confirm it's working by adding a marker to the template.
To wrap up, the episode explains how you can fully tailor the breadcrumb template: add or remove elements, tweak the logic, and make the breadcrumbs match your design perfectly. You're now free to fully control the look and feel of your breadcrumbs!