'Getting parameter action function Slim 4
I got an action route like this
$app->get('/company/{id}', GetCompany::class);
And the Action
class GetCompany extends Action
{
protected function action(): Response
{
return $this->respondWithData(....);
}
}
How do I get the {id} inside the action() function?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
