**NOTE** – Thanks to @devhammed, I learned that this is possible in the framework itself. Using `setIntendedUrl` on the redirect() method. I put together a quick video on my Twitter to show this off:
https://x.com/joshcirre/status/187783...
- - -
Every now and then you come across a problem that you don't know how to solve it, and usually you end up trying too hard to solve it. So I took a step back and solved this one in my Laracasts course the old-fashioned way.
Extremely simply.
Keep creating.
――
Help me choose my next video:
https://cir.re/suggest
-----------------------
Laracasts: https://laracasts.com/
My Laracasts Series: https://laracasts.com/series/lets-bui...
Middleware Docs: https://laravel.com/docs/11.x/middleware
---
📹 *Watch My VSCode Setup Video:* • My Minimal and Beautiful VSCode Setup
🎓 *Make VSCode Awesome – Caleb Porzio's Course (support me with this link):* https://gumroad.com/a/636621331