Skip to content

Commit

Permalink
Added slash removal at the beginning of the controller path.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Helldar committed Oct 5, 2020
1 parent cd4fa8c commit f45e493
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 @@ -49,7 +49,7 @@ public function getName(): ?string

public function getAction(): string
{
return $this->route->getActionName();
return ltrim($this->route->getActionName(), '\\');
}

public function getMiddlewares(): array
Expand Down

0 comments on commit f45e493

Please sign in to comment.