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
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










