Repository: InfyOmLabs/laravel-generator (language: php)

Issue:
Bug: Skip argv is no longer working in laravel 10
Versions: 

Package: 6.0
Laravel: 10.8.0


Problem:

Skip is no longer working, the command is using in_array comparision, but the haystack is a single item array of all skip items.

Suggest using 

```php

if ($this->option('skip')) {
            return in_array($skip, explode(",", $this->option('skip') ?? '') );
        }

        return false;

```

Ugly but see this DD for more clarity.

![image](https://user-images.githubusercontent.com/48888686/232906227-8a275300-3a79-46fb-ae1e-6a178bf117ee.png)

![image](https://user-images.githubusercontent.com/48888686/232906281-43a11796-e010-4fb0-b806-dd86b3cde5fc.png)



Discussion / hints:

Fix patch:
diff --git a/src/Commands/BaseCommand.php b/src/Commands/BaseCommand.php
index a1934a2a..0b0907a3 100755
--- a/src/Commands/BaseCommand.php
+++ b/src/Commands/BaseCommand.php
@@ -186,7 +186,7 @@ public function runMigration(): bool
     public function isSkip($skip): bool
     {
         if ($this->option('skip')) {
-            return in_array($skip, (array) $this->option('skip'));
+            return in_array($skip, explode(',', $this->option('skip') ?? ''));
         }
 
         return false;


Test patch: