Eloquent Model::table() bug fix
@@ -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)));
}
/**