diff --git a/src/Commands/CrudApiCommand.php b/src/Commands/CrudApiCommand.php
index <HASH>..<HASH> 100644
--- a/src/Commands/CrudApiCommand.php
+++ b/src/Commands/CrudApiCommand.php
@@ -91,6 +91,7 @@ class CrudApiCommand extends Command
 
         $fieldsArray = explode(';', $fields);
         $fillableArray = [];
+        $migrationFields = '';
 
         foreach ($fieldsArray as $item) {
             $spareParts = explode('#', trim($item));
Fix undefined $migrationFields