I have a code work with laravel and Wildcard Domain. I like to using Subdomain Route for a controller and I have a route like this:
# Tester. URI : www.example.com/tester/{any}
Route::get('/tester/{any}', 'tester@Modules');
then i want to using Subdomain routing, so I change the route code like this:
#Subdomain route. URL : qwerty.example.com, it same as www.example.com/tester/qwerty
Route::group(array('domain' => '{parameter}.example.com'), function()
{
Route::any('/tester/{parameter}', 'tester@Modules');
}
But didn't work. Can someone help me to resolve this problem? Thank you