/**
  * Get the nem of the current route.
  *
  * @return mixed|null
  */
 public function getName()
 {
     $route = $this->router->current();
     if (is_null($route)) {
         return null;
     }
     $name = $route->getName();
     if (is_null($name)) {
         $name = $this->uri();
     }
     return $name;
 }