From de6af8ea588189cad06c1f00ae16d505506b02ee Mon Sep 17 00:00:00 2001 From: mortazavi Date: Tue, 30 May 2023 14:50:44 +0330 Subject: [PATCH] route parameter name logic updated; --- src/Services/Contracts/Routeing/Relations.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Services/Contracts/Routeing/Relations.php b/src/Services/Contracts/Routeing/Relations.php index d714830..7caaadd 100644 --- a/src/Services/Contracts/Routeing/Relations.php +++ b/src/Services/Contracts/Routeing/Relations.php @@ -63,7 +63,7 @@ abstract protected function routes( string $name, string $parameter, string $act protected function register(): void { $this->registered = true; - $name = Str::singular( $this->name ); + $name = Str::of( $this->name )->singular()->camel()->snake()->toString(); $action = Str::of( $this->relation )->camel()->ucfirst(); $parameter = Str::lower( $this->relation );