InfyOmLabs/laravel-generator

Bug: Skip argv is no longer working in laravel 10

robertmarney opened this issue · 0 comments

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

if ($this->option('skip')) {
            return in_array($skip, explode(",", $this->option('skip') ?? '') );
        }

        return false;

Ugly but see this DD for more clarity.

image

image