Model::table() uses class_basename() helper - which properly discards namespaces on *nix systems

Signed-off-by: Joe Wallace <joew@atiba.com>
This commit is contained in:
Joe Wallace 2012-04-09 11:28:40 -05:00
parent b7ac1b75af
commit f7aee0ca2a
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)));
} }
/** /**