Skip to content

Commit

Permalink
Merge pull request #16 from dominik-wbz/hotfix/laravel6-support
Browse files Browse the repository at this point in the history
additional fix for laravel 6 support
  • Loading branch information
marcreichel committed Sep 26, 2019
2 parents 848f362 + 6433229 commit aef5fbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Models/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ protected function setEndpoint()
$class = class_basename(get_class($this));

$this->endpoint = ($this->privateEndpoint ? '/private' : '') .
str_start(snake_case(str_plural($class)), '/');
Str::start(Str::snake(Str::plural($class)), '/');
}
}

Expand Down Expand Up @@ -361,4 +361,4 @@ public function toJson($options = 0): string
{
return collect($this->toArray())->toJson($options);
}
}
}

0 comments on commit aef5fbb

Please sign in to comment.