Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c987824

Browse files
committed
Put domain in route output. Closes laravel#1388.
1 parent 98a9533 commit c987824

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Illuminate/Foundation/Console/RoutesCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ protected function getRouteInformation($name, Route $route)
9797
$action = $route->getAction() ?: 'Closure';
9898

9999
return array(
100+
'host' => $route->getHost(),
100101
'uri' => $uri,
101102
'name' => $this->getRouteName($name),
102103
'action' => $action,
@@ -112,7 +113,7 @@ protected function getRouteInformation($name, Route $route)
112113
*/
113114
protected function displayRoutes(array $routes)
114115
{
115-
$headers = array('URI', 'Name', 'Action', 'Before Filters', 'After Filters');
116+
$headers = array('Domain', 'URI', 'Name', 'Action', 'Before Filters', 'After Filters');
116117

117118
$this->table->setHeaders($headers)->setRows($routes);
118119

0 commit comments

Comments
 (0)