Laravel 当程序包';s安装失败?
由于某些原因,Laravel 当程序包';s安装失败?,laravel,Laravel,由于某些原因, 但是当我试着跑的时候 php artisan migrate:rollback 或 我犯了这个错误 Illuminate\Database\QueryException : SQLSTATE[42S02]: Base table or view not found: 1146 La table 'project.menu_items' n'existe pas (SQL: alter table `menu_items` add `route` varchar(
但是当我试着跑的时候
php artisan migrate:rollback
或
我犯了这个错误
Illuminate\Database\QueryException : SQLSTATE[42S02]: Base table or view not found: 1146 La table 'project.menu_items' n'existe pas (SQL: alter table `menu_items` add `route` varchar(191) null, add `parameters` text null)
at C:\wamp\www\project\vendor\laravel\framework\src\Illuminate\Database\Connection.php:664
660| // If an exception occurs when attempting to run a query, we'll format the error
661| // message to include the bindings with SQL, which will make this exception a
662| // lot more helpful to the developer instead of just the database's errors.
663| catch (Exception $e) {
> 664| throw new QueryException(
665| $query, $this->prepareBindings($bindings), $e
666| );
667| }
668|
Exception trace:
1 Doctrine\DBAL\Driver\PDOException::("SQLSTATE[42S02]: Base table or view not found: 1146 La table 'project.menu_items' n'existe pas") C:\wamp\www\project\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOStatement.php:143
2 PDOException::("SQLSTATE[42S02]: Base table or view not found: 1146 La table 'project.menu_items' n'existe pas")
C:\wamp\www\project\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOStatement.php:141
我认为project.menu项目属于旅行者软件包我试图通过运行
composer remove vendor/the_package_name
php artisan cache:clear
php artisan config:clear
没有结果。请帮忙 按照文档中的操作:1<代码>编写器需要tcg/voyager2
php artisan voyager:install
问题不在于如何安装软件包,而在于如何删除它。这取决于它对您以前的应用程序结构的破坏程度,如果它只是一个新的应用程序,那么为什么不重新创建它呢?若它是一个正常工作的应用程序,那个么你们已经连接了voyager,现在你们想删除它,我希望你们已经用GiT跟踪了变化。否则,您必须查找已更改的文件等,并手动删除它们,或者与贡献者讨论卸载方案
composer remove vendor/the_package_name
php artisan cache:clear
php artisan config:clear