domain() public method

Get the domain defined for the route.
public domain ( ) : string | null
return string | null
 /**
  * Get the route information for a given route.
  *
  * @param  Route  $route
  * @return array
  */
 protected function getRouteInformation(Route $route)
 {
     $uri = implode('|', $route->methods()) . ' ' . preg_replace('/^\\//', '', $route->uri());
     return $this->filterRoute(array('host' => $route->domain(), 'uri' => $uri, 'name' => $route->getName(), 'action' => $route->getAction()['uses'], 'before' => '', 'after' => '', 'prefix' => 'api/' . $route->versions()[0], 'method' => $route->methods()[0]));
 }