Supported Versions: PHP 5, PHP 7, PHP 8
List files and directories inside the specified path
<?php scandir(string $directory, int $sorting_order = SCANDIR_SORT_ASCENDING, ?resource $context = null): array|false
<?php             'laravel/sanctum:^4.0',

        ]);



        $migrationPublished = collect(scandir($this->laravel->databasePath('migrations')))->contains(function ($migration) {

            return preg_match('/\d{4}_\d{2}_\d{2}_\d{6}_create_personal_access_tokens_table.php/', $migration);

        });