Support the ongoing development of Laravel.io →
Requests Architecture
Last updated 2 years ago.
0

I'm not sure, but you could set an app config variable, where you map 'current' to a particular version number, and then do a simple string replace in the URI to swap 'current' out with the version set in the config.

the only real question is do you want to do this with Laravel or do you want to alter the $request before laravel boots.

0

Hmm I hoped there would be something like when you apply multipl filters to a route: using the pipe-character to combine both.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

vannut vannut Joined 26 Sep 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.