Skip to content

Commit

Permalink
Fixed closures routes
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Helldar committed Dec 15, 2020
1 parent d0d4a0f commit f3dbfa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public function getAction(): string
? Arr::get($action, 'uses')
: $action;

return ltrim($value, '\\');
return $value ? ltrim($value, '\\') : 'Closure';
}

public function getMiddlewares(): array
Expand Down

0 comments on commit f3dbfa1

Please sign in to comment.