---
title: How I hacked Laravel to ignore missing route bindings
url: "https://aaronfrancis.com/videos/how-i-hacked-laravel-to-ignore-missing-route-bindings"
path: "/videos/how-i-hacked-laravel-to-ignore-missing-route-bindings"
type: video
author: Aaron Francis
published: 2025-07-30
topic: "Laravel & PHP"
keywords: [route bindings, laravel, macros, route fallthrough, route caching, dependency injection, request lifecycle, middleware]
youtube_url: "https://www.youtube.com/watch?v=yU8Uc3Eq4uQ"
site_index: "/llms.txt"
keyword_index: "/llms/keywords.txt"
---

# How I hacked Laravel to ignore missing route bindings

## Transcript

**Aaron Francis:** We're gonna hack a little bit on the Laravel core, adding a feature that I certainly want, and I don't know if anyone else in the world wants, but that is not the point. The point is you can figure things out. That's the point. So we're gonna go dive into the source of Laravel and see if there's anywhere that we can get our grubby little paws on this process to kind of, uh, shoehorn our new feature into it. So let me show you what we're actually trying to do.

**Aaron Francis:** Here is my routes file, and we're gonna look at this podcast section here. So very normal stuff. We've got podcasts with an optional podcast parameter that goes to the podcast controller. We've got podcast/episodes and then an episode parameter, and that goes to the episode controller. I don't like this. I don't want it to be like this. I want it to be like that. But we can't put, we can't put, um, this first because then if it doesn't match an episode, we get a 404.

**Aaron Francis:** We can't put this second because then if it doesn't match a podcast, we get a 404. So we're gonna, we're gonna try to fix it. Just gonna start by poking around. We're not gonna go on a forum and ask a question. We're not gonna ask ChatGPT. We're not gonna go on Twitter and complain. We can figure things out, so we're just gonna go source dive, see if there's a place we can add it. Works.

**Aaron Francis:** So now, uh, if I do mostly technical, I get the podcast page, and if I do the number two, I get an episode page. We have just successfully ignored missing bindings. This is super cool. I hope this encourages you that, one, Laravel's extremely flexible and extremely customizable, especially when you find that macro-able trait.

**Aaron Francis:** We love to see that. And two, you can figure anything out. All you gotta do is source dive, look around, hook into the life cycle, drop a few DD statements in there. It's the best way to debug. And you can get your grubby little paws on almost every part of the Laravel framework to add anything that you need. Let me know what you think, uh, about this video and also about the method. Would you use it? It's not big enough to turn into a package, but if somebody wants to make a PR to the framework, I would 100% support you.

**Aaron Francis:** Until the next time. See ya.

---

## Related on aaronfrancis.com

- [Hacking the Laravel router](/videos/hacking-the-laravel-router) *(Video · 2025-07-02 · shared: route bindings, route caching, route fallthrough)*
- [Laravel Dusk: painless browser automation](/videos/laravel-dusk-painless-browser-automation) *(Video · 2024-07-19 · shared: laravel, macros)*
- [About](/about) *(Page · 2026-11-25 · shared: laravel)*
- [Now](/now) *(Page · 2026-11-25 · shared: laravel)*
- [Biggest Week In Laravel History](/podcast/biggest-week-in-laravel-history-cfbcddfa) *(Podcast · 2026-11-24 · shared: laravel)*

## Relevant Resources from Aaron Francis

- **[Solo](https://soloterm.com)** (overview on site: [/software](/software)): All-in-one agentic development platform and terminal workspace built by Aaron Francis for orchestrating processes and AI coding agents.

## Search aaronfrancis.com (2-Hop Static Keyword Index)

Pick the alphabetical shard matching any topic to find exact pages across all articles, newsletters, videos, talks, and podcast transcripts (every shard is < 40 KB):
[A-B](/llms/keywords/a-b.txt) · [C](/llms/keywords/c.txt) · [D-E](/llms/keywords/d-e.txt) · [F-G](/llms/keywords/f-g.txt) · [H-J](/llms/keywords/h-j.txt) · [K-L](/llms/keywords/k-l.txt) · [M-N](/llms/keywords/m-n.txt) · [O-P](/llms/keywords/o-p.txt) · [Q-R](/llms/keywords/q-r.txt) · [S](/llms/keywords/s.txt) · [T-Z](/llms/keywords/t-z.txt) · [Directory](/llms/keywords.txt) · [Site Map](/llms.txt)

Shards for this page's topics: `route bindings` ([Q-R](/llms/keywords/q-r.txt)), `laravel` ([K-L](/llms/keywords/k-l.txt)), `macros` ([M-N](/llms/keywords/m-n.txt)), `dependency injection` ([D-E](/llms/keywords/d-e.txt)).

## About Aaron Francis (Current Context)

Aaron Francis is VP of Marketing and Community at [Laravel](https://laravel.com), founder of [Try Hard Studios](https://tryhardstudios.com), creator of [Solo](https://soloterm.com), co-host of [Mostly Technical](/podcast), and author of [Mastering Postgres](/courses), [High Performance SQLite](/courses), [MySQL for Developers](/courses), and [Screencasting.com](/courses). Full bio: [/about](/about) · Current focus: [/now](/now).
