Signed-off-by: Joe Wallace <joew@atiba.com>
@@ -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)));
}
/**