Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Orangehill\Iseed\TableNotFoundException on existing table #183

Open
HepplerDotNet opened this issue Feb 25, 2021 · 4 comments
Open

Orangehill\Iseed\TableNotFoundException on existing table #183

HepplerDotNet opened this issue Feb 25, 2021 · 4 comments

Comments

@HepplerDotNet
Copy link

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

@arborrow
Copy link

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.

@osc2nuke
Copy link

Not worked for me, error stays the same.

@VirajInsharp
Copy link

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.

@wewhite
Copy link

wewhite commented Mar 7, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants