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:
parent
b7ac1b75af
commit
f7aee0ca2a
@ -465,7 +465,7 @@ abstract class Model {
|
||||
*/
|
||||
public function table()
|
||||
{
|
||||
return static::$table ?: strtolower(Str::plural(basename(get_class($this))));
|
||||
return static::$table ?: strtolower(Str::plural(class_basename($this)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user