Commit f7aee0ca by Joe Wallace

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

Signed-off-by: Joe Wallace <joew@atiba.com>
parent b7ac1b75
......@@ -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)));
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment