From ad25691df7814ab87c2e37e0c538c71a8e186a75 Mon Sep 17 00:00:00 2001 From: jtyms <46805577+jtyms@users.noreply.github.com> Date: Tue, 10 Mar 2020 10:50:06 +0400 Subject: [PATCH] Update SchemaParser.php Fixed Error Call to undefined function Laracasts\Generators\Migrations\str_plural() --- src/Migrations/SchemaParser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } /**