guys so I have a service in which i have a constructor that accepts router service.
My question is how can I know the current route name?
This is my service:
class Navigation
{
protected $modules;
protected $router;
public function __construct($modules, $router)
{
$this->modules = $modules;
$this->router = $router;
}
}
Thanks.