Merge pull request #518 from joecwallace/eloquent-model-table-basename-fix

Eloquent Model::table() bug fix
This commit is contained in:
Taylor Otwell 2012-04-09 19:55:34 -07:00
commit 9ee9e7bb5e
1 changed files with 1 additions and 1 deletions

View File

@ -465,7 +465,7 @@ public function dirty()
*/ */
public function table() public function table()
{ {
return static::$table ?: strtolower(Str::plural(basename(get_class($this)))); return static::$table ?: strtolower(Str::plural(class_basename($this)));
} }
/** /**