我需要帮助来解决这个问题,似乎我无法解决,因为我不知道如何处理它。 请帮助调试我面临的这个种子错误。
Seeding: DefaultBlockedTypeTableSeeder
Seeding: DefaultBlockedItemsTableSeeder
Seeding: BlockedTypeTableSeeder
Seeding: BlockedItemsTableSeeder
Seeding: DefaultPermissionitemsTableSeeder
IlluminateDatabaseQueryException : SQLSTATE[42S02]: Base table or view not found: 1146 Table 'membership.permissions' doesn't exist (SQL: select * from `permissions` where `slug` = view.users and `permissions`.`deleted_at` is null limit 1)
at C:xampphtdocslaravel-auth-mastervendorlaravelframeworksrcIlluminateDatabaseConnection.php:669
665| // If an exception occurs when attempting to run a query, we'll format the error
666| // message to include the bindings with SQL, which will make this exception a
667| // lot more helpful to the developer instead of just the database's errors.
668| catch (Exception $e) {
> 669| throw new QueryException(
670| $query, $this->prepareBindings($bindings), $e
671| );
672| }
673|
Exception trace:
1 DoctrineDBALDriverPDOException::("SQLSTATE[42S02]: Base table or view not found: 1146 Table 'membership.permissions' doesn't exist")
C:xampphtdocslaravel-auth-mastervendordoctrinedballibDoctrineDBALDriverPDOConnection.php:63
2 PDOException::("SQLSTATE[42S02]: Base table or view not found: 1146 Table 'membership.permissions' doesn't exist")
C:xampphtdocslaravel-auth-mastervendordoctrinedballibDoctrineDBALDriverPDOConnection.php:61
Please use the argument -v to see more details.
我猜你在AuthServiceProvider.php
定义了与项目中的数据库表相关的门(在此错误中:权限(,所以你必须注释这些并再次运行php artisan db:seed
,完成后,转到AuthServiceProvider.php
并取消注释盖茨。