Skip to content

route parameter issue resolved for tenant based routing:#197

Merged
techmahedy merged 1 commit intodoppar:3.xfrom
techmahedy:techmahedy-3.x
Feb 25, 2026
Merged

route parameter issue resolved for tenant based routing:#197
techmahedy merged 1 commit intodoppar:3.xfrom
techmahedy:techmahedy-3.x

Conversation

@techmahedy
Copy link
Member

After the PR, the tenant is available via the $request object as well and also it will work seamlessly with route parameters

#[Route(uri: '/{id}/{name}', name: 'home', domain: '{tenant}.myapp.local', middleware: ['guest'])]
public function welcome(string $tenant, int $id, string $name, Request $request)
{
    // Example URI: http://glob.myapp.local/1/hasan?country=bd
  
    dump($request->query('country'));
    dump("Tenant: {$tenant}, Project ID: {$id}");
    dump($request->tenant);
    dd($tenant);
}

@techmahedy techmahedy added the bug Something isn't working label Feb 25, 2026
@techmahedy techmahedy merged commit 2599839 into doppar:3.x Feb 25, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant