Make self-healing URLs with Laravel @aarondfrancis
Make self-healing URLs with Laravel  @aarondfrancis
Uploaded November 2023 | Updated September 2026, 9 hours ago
The primary principle behind implementing self-healing URLs is being able to segregate the unique identifier (the ID) from the other components of the URL (the SEO-friendly bits). Let's figure out how to do it in Laravel!

You can read this as a blog post at aaronfrancis.com/2023/self-healing-urls-in-laravel.
To learn more about nanoids: github.com/ai/nanoid.

Follow me:
Twitter: twitter.com/aarondfrancis
LinkedIn: linkedin.com/in/aarondfrancis
Website: aaronfrancis.com - find articles, podcasts, courses, and more.

Chapters:
00:00 Amazon and Medium
00:53 Setting up route-model binding
01:55 Appending a unique identifier
04:00 Generating the slugged URLs
05:49 Throwing a redirect
09:47 Hiding our primary keys
13:19 No redirect map needed
Make self-healing URLs with LaravelThe Music Makers Podcast - 016 - But You Did Not Persuade MeFrom Prisma Founder to LiveStore: Building local-first apps with Johannes SchicklingThe future of this channelFree, fast, full text search: Laravel + TypesenseThe Music Makers Podcast - 031 - I Never Finish AnythBuilding a Life OSThe Music Makers Podcast - 030 - The One With No ArticleThe Music Makers Podcast - 039 - JustHow YouTube prevented massive outagesEscaping the UnderclassBuilding a model reservation system with atomic locks
Aaron Francis |

Make self-healing URLs with Laravel

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER