Skip to content

Fix Laravel 11+ table listing

Choose a tag to compare

@tihomiro tihomiro released this 28 Jan 07:49
· 30 commits to master since this release
691c6dc

What's Changed

Fixes #258 - php artisan iseed (without table names) now works on Laravel 11+.

Laravel 11 removed doctrine/dbal, so this release uses Laravel's Schema::getTables() facade instead.

Changes

  • Use Schema::getTables() for Laravel 11+ instead of doctrine/dbal
  • Support MySQL, SQLite, and PostgreSQL drivers
  • Fix PHP 8.2 dynamic property deprecation warning
  • Fix PHPUnit 8/11 test compatibility

Credits

Thanks to @zackAJ for identifying the issue and initial implementation (#259)