From 42e277a129cedcb7c693e490eb0dfa0acad32c73 Mon Sep 17 00:00:00 2001 From: The Crypto Date: Sat, 1 Oct 2022 20:46:49 +0700 Subject: [PATCH 1/2] fix cant generate fillable MigrationGenerator --- src/Prettus/Repository/Generators/Migrations/SchemaParser.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Prettus/Repository/Generators/Migrations/SchemaParser.php b/src/Prettus/Repository/Generators/Migrations/SchemaParser.php index c97c49ec..14f5751a 100644 --- a/src/Prettus/Repository/Generators/Migrations/SchemaParser.php +++ b/src/Prettus/Repository/Generators/Migrations/SchemaParser.php @@ -116,9 +116,7 @@ public function getSchemas() */ public function getColumn($schema) { - return Arr::first(explode(':', $schema), function ($key, $value) { - return $value; - }); + return Arr::first(explode(':', $schema)); } /** From dae6d783271d3bd08aa0e535f5ca531b84578487 Mon Sep 17 00:00:00 2001 From: feripratama Date: Sat, 1 Oct 2022 20:56:03 +0700 Subject: [PATCH 2/2] fix missing schema class on migration file --- src/Prettus/Repository/Generators/Stubs/migration/create.stub | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Prettus/Repository/Generators/Stubs/migration/create.stub b/src/Prettus/Repository/Generators/Stubs/migration/create.stub index e9b87bd0..17d1ff53 100644 --- a/src/Prettus/Repository/Generators/Stubs/migration/create.stub +++ b/src/Prettus/Repository/Generators/Stubs/migration/create.stub @@ -2,6 +2,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; +use Illuminate\Support\Facades\Schema; /** * Class $CLASS$.