Skip to content

Commit 7487a88

Browse files
committed
More debugging
1 parent 434a528 commit 7487a88

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Illuminate/Foundation/Console/RouteListCommand.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ public function __construct(Router $router)
9191
*/
9292
public function handle()
9393
{
94+
dump($this->option('middleware'));
95+
9496
if (! $this->output->isVeryVerbose()) {
9597
$this->router->flushMiddlewareGroups();
9698
}
@@ -263,6 +265,10 @@ protected function isFrameworkController(Route $route)
263265
*/
264266
protected function filterRoute(array $route)
265267
{
268+
if ($this->option('middleware')) {
269+
dump($route['middleware']);
270+
}
271+
266272
if (($this->option('name') && ! Str::contains((string) $route['name'], $this->option('name'))) ||
267273
($this->option('action') && isset($route['action']) && is_string($route['action']) && ! Str::contains($route['action'], $this->option('action'))) ||
268274
($this->option('path') && ! Str::contains($route['uri'], $this->option('path'))) ||

0 commit comments

Comments
 (0)