How can I get current controller & action in Lumen
Let say I have a User resource in the routing.
Then if I access the user/show/id, can I get the current controller name & action name in the Controller?
class Controller extends BaseController
{
public function __construct()
{
$controllerName = ???;
$actionName = ???
}
}
Here is one simple trick to get action and controller name