Using Slugs with Laravel Resource Routes
Learn how to customise Laravel's resource route model binding to use slugs instead of IDs using the ->parameters() method or model configuration.
I write about Laravel, Livewire, Tailwind, and the thoughtful process of building web applications from the ground up.
I'm drawn to tools that are powerful yet elegant—and that's why I build with the TALL stack. This blog is a place to document what I learn, share small breakthroughs, and explore better ways of crafting apps that are useful, maintainable, and meaningful.
Learn how to customise Laravel's resource route model binding to use slugs instead of IDs using the ->parameters() method or model configuration.
Learn how to use Laravel's pipeline pattern to break complex service logic into clean, reusable, and testable steps.
Service classes help you keep your Laravel controllers clean by moving business logic into dedicated, reusable classes. Here's why you should use them—and how to get started.
Want to dive deeper? Browse all posts