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

I'm not sure if it is possible to have two variables in one route segment.. Can't you combine the id, . and format in one pattern?

0

The two variables work fine. The problem is the id pattern. Maybe I should reduce the problem to this:

Route::get('/name/{id}', 'NameController@showName')
->where(array('id' => '/\p{L}+/u'));
0

Sign in to participate in this thread!

Eventy

Your banner here too?

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.