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

Seed error #5

Open
jointothedarkside opened this issue Feb 7, 2021 · 1 comment
Open

Seed error #5

jointothedarkside opened this issue Feb 7, 2021 · 1 comment

Comments

@jointothedarkside
Copy link

λ php artisan db:seed
Seeding: AdminTableSeeder

Illuminate\Database\QueryException

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'muzbnb.admins' doesn't exist (SQL: select * from admins where admins.id = 6 limit 1)

at C:\laragon\www\muzbnb\vendor\laravel\framework\src\Illuminate\Database\Connection.php:671
667| // If an exception occurs when attempting to run a query, we'll format the error
668| // message to include the bindings with SQL, which will make this exception a
669| // lot more helpful to the developer instead of just the database's errors.
670| catch (Exception $e) {

671| throw new QueryException(
672| $query, $this->prepareBindings($bindings), $e
673| );
674| }
675|

• A table was not found: You might have forgotten to run your migrations. You can run your migrations using php artisan migrate.
https://laravel.com/docs/master/migrations#running-migrations

1 C:\laragon\www\muzbnb\vendor\laravel\framework\src\Illuminate\Database\Connection.php:331
PDOException::("SQLSTATE[42S02]: Base table or view not found: 1146 Table 'muzbnb.admins' doesn't exist")

2 C:\laragon\www\muzbnb\vendor\laravel\framework\src\Illuminate\Database\Connection.php:331
PDO::prepare("select * from admins where admins.id = ? limit 1")

@kadmuh
Copy link

kadmuh commented Jun 17, 2021

hello. thank you for this amazing project. can i ask if where can i find the database file muzbnb_dev to make the project work in my localhost?

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

2 participants