From 6226236c0e78c264f7817d73ccad7a04d4e0683b Mon Sep 17 00:00:00 2001 From: LT Date: Fri, 9 Sep 2022 18:05:17 +0300 Subject: [PATCH] fixed issue #34 --- src/Resources/Resource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Resources/Resource.php b/src/Resources/Resource.php index 6796936a4..111f0c012 100644 --- a/src/Resources/Resource.php +++ b/src/Resources/Resource.php @@ -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),