JayBizzle / Laravel-Migrations-Organiser

A Laravel package to help organise migrations
MIT License
109 stars 17 forks source link

php artisan --path not being able to run only one file #37

Open azfaroyal171 opened 3 years ago

azfaroyal171 commented 3 years ago

UnexpectedValueException : RecursiveDirectoryIterator::__construct(/var/www/html/database/migrations/2020/11/2020_11_27_053044_test.php): failed to open dir: Not a directory

at /var/www/html/vendor/jaybizzle/laravel-migrations-organiser/src/Migrator.php:47 43| $paths = []; 44| 45| foreach ($folders as $folder) { 46| $iter = new Iterator(

47| new DirectoryIterator($folder, DirectoryIterator::SKIP_DOTS), 48| Iterator::SELF_FIRST, 49| Iterator::CATCH_GET_CHILD // Ignore "Permission denied" 50| ); 51|

Exception trace:

1 RecursiveDirectoryIterator::__construct("/var/www/html/database/migrations/2020/11/2020_11_27_053044_test.php") /var/www/html/vendor/jaybizzle/laravel-migrations-organiser/src/Migrator.php:47

2 Jaybizzle\MigrationsOrganiser\Migrator::getRecursiveFolders() /var/www/html/vendor/jaybizzle/laravel-migrations-organiser/src/Migrator.php:22

Please use the argument -v to see more details.

JayBizzle commented 3 years ago

Open to PRs to fix this as we don't use the --path feature