Skip to content

Commit

Permalink
route parameter name logic updated;
Browse files Browse the repository at this point in the history
  • Loading branch information
hans-thomas committed May 30, 2023
1 parent 18c4d3d commit de6af8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/Contracts/Routeing/Relations.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down

0 comments on commit de6af8e

Please sign in to comment.