Skip to content

Commit ff5530f

Browse files
author
Socola Đại Ca
committed
2 parents 0bf6a65 + fdcf13d commit ff5530f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/HasTablePrefix.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,11 @@ public function getTable()
3333

3434
if ($this instanceof Pivot && ! isset($this->table)) {
3535
$this->setTable($this->getPrefix() . str_replace(
36-
'\\', '', Str::snake(Str::singular(class_basename($this)))
36+
'\\',
37+
'',
38+
Str::snake(Str::singular(class_basename($this)))
3739
));
40+
3841
return $this->tableWithPrefix;
3942
}
4043

0 commit comments

Comments
 (0)