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

Well, I found out my whole problem doesn't exist, can't reproduce it anymore. The Controller was consistently returning the wrong value.

For what it's worth, after playing with this a bit I finally found out what I missed. My route with a parameter is basically registered as {group param}/{route param}, so I just had to get a secong argument from my controller method et voilà !

public function dispatch ( $lang, $any = null )
{
  dd($any);
}
0

Sign in to participate in this thread!

Eventy

Your banner here too?

tomzmtl tomzmtl Joined 22 Jan 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.

© 2024 Laravel.io - All rights reserved.