Supported Versions: PHP 5, PHP 7, PHP 8
Find the position of the first occurrence of a case-insensitive substring in a string
<?php stripos(string $haystack, string $needle, int $offset = 0): int|false
<?php         if (stripos($table, ' as ') !== false) {

            return $this->wrapAliasedTable($table);

        }
<?php         if (stripos($value, ' as ') !== false) {

            return $this->wrapAliasedValue($value);

        }
<?php     protected function withoutSelectAliases(array $columns)

    {

        return array_map(function ($column) {

            return is_string($column) && ($aliasPosition = stripos($column, ' as ')) !== false

                    ? substr($column, 0, $aliasPosition) : $column;

        }, $columns);

    }
<?php         ]));



        $migrations = collect(preg_split("/\r\n|\n|\r/", $process->getOutput()))->filter(function ($line) {

            return stripos($line, 'sqlite_sequence') === false &&

                   strlen($line) > 0;

        })->all();