Support the ongoing development of Laravel.io →
posted 10 years ago
Views

Hello,

I'd like to use routing arguments in routes that have an URL of unknown length. Ala.

site.com/a/b/c/d/e/f/g... (n-number of arguments).

What I would like to do is something like

Route::get('/{arguments}, function($arguments) { $a = $arguments[0]; $b = $arguments[1]; .... $z = $arguments[25]; });

Does anyone have a solution for this?

Last updated 3 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

karljv karljv Joined 4 Feb 2015

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.

© 2025 Laravel.io - All rights reserved.