orangehill/iseed

Orangehill\Iseed\TableNotFoundException on existing table

HepplerDotNet opened this issue · 4 comments

Installed latest (v3.0.1) on a php 8 server with Laravel 8.
Running php artisan iseed departments throws Orangehill\Iseed\TableNotFoundException
The table departments exists and uses the default connection.

PHP: 8.0.2
MariaDB: 10.5.8
Laravel: 8.29.0

the database/seeds directory has been renamed to /database/seeders - a quick fix is to rename seeders to seed and then run the command and then rename the path back to seeders after you have the generated seeder file. Ideally a new version would be developed that gives an option to specify the name of the seeders directory or even better automatically recognizes that you are using Laravel v8 and automagically create the file in the default location.

Not worked for me, error stays the same.

I also got an error when using this package. This is what I did. Created a new folder inside database folder called seeder. Then copy and paste DatabaseSeeder.php into that folder. Now it's creating seeder files.

The class file TableNotFoundException.php does not exist.
The class file Exceptions.php exists, but class name TableNotFoundException inside the file.
Rename Exceptions.php to TableNotFoundException.php.

Worked for me on Laravel 10.x php8.2