diff --git a/src/Migrations/SchemaParser.php b/src/Migrations/SchemaParser.php index a3edd1f..ee572a2 100644 --- a/src/Migrations/SchemaParser.php +++ b/src/Migrations/SchemaParser.php @@ -143,7 +143,7 @@ private function addForeignConstraint($segments) */ private function getTableNameFromForeignKey($key) { - return str_plural(str_replace('_id', '', $key)); + return Str::plural(str_replace('_id', '', $key)); } /**