Skip to content

Commit

Permalink
fixed issue #34
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-to committed Sep 9, 2022
1 parent 1656387 commit 6226236
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/Resource.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public function routeName(string|null $action = null): string
->when($action, fn($str) => $str->append('.')->append($action));
}

public function route(string $action, int $id = null, array $query = []): string
public function route(string $action = null, int|string $id = null, array $query = []): string
{
return route(
$this->routeName($action),
Expand Down

0 comments on commit 6226236

Please sign in to comment.