Skip to content

Commit d8cadde

Browse files
committed
Fix issue with old deprecated functions
1 parent 5811d2d commit d8cadde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Eloquent/Model.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function getTable()
4848
if ( ! empty($this->table)) {
4949
$table = $this->table;
5050
} else {
51-
$table = str_replace('\\', '', snake_case(str_plural(class_basename($this))));
51+
$table = str_replace('\\', '', Str::snake(Str::camel(class_basename($this))));
5252
}
5353

5454
return $this->getConnection()->db->prefix.$table;

0 commit comments

Comments
 (0)