Script@php artisan package:discover--ansi处理返回的自动加载后转储事件,错误代码为1
我在更新laravel项目的composer时出错。我用的是laravel 5.6 更新composer gettingScript@php artisan package:discover--ansi处理返回的自动加载后转储事件,错误代码为1,php,laravel,laravel-5,composer-php,laravel-5.6,Php,Laravel,Laravel 5,Composer Php,Laravel 5.6,我在更新laravel项目的composer时出错。我用的是laravel 5.6 更新composer gettingScript@php artisan package:discover--ansi处理自动加载后转储事件时返回错误代码1。我尝试了这么多的解决方案,但什么也没有发生,错误仍然存在 Generating optimized autoload files > Illuminate\Foundation\ComposerScripts::postAutoloadDump >
Script@php artisan package:discover--ansi处理自动加载后转储事件时返回错误代码1
。我尝试了这么多的解决方案,但什么也没有发生,错误仍然存在
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
Illuminate\Database\QueryException : SQLSTATE[42S02]: Base table or view not found: 1146 Table 'xyz.x' doesn't exist (SQL: select * from `x`)
at /erp/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 App\Services\Listing\CompositionChecker::__construct()
[internal]:0
2 PDOException::("SQLSTATE[42S02]: Base table or view not found: 1146 Table 'xyz.x' doesn't exist")
/erp/vendor/laravel/framework/src/Illuminate/Database/Connection.php:326
Please use the argument -v to see more details.
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
如何解决这个问题?提前感谢。检查您的项目
.env
文件是否正确设置了数据库设置。检查您的项目.env
文件是否正确设置了数据库设置。从Laravel应用程序的根目录中删除引导/cache
目录中的所有文件帮助我解决了问题问题。从Laravel应用程序的根目录中删除引导/cache
目录中的所有文件有助于我解决问题。运行此命令编写器更新
仅更新编写器时出错检查.env
数据库配置文件。。运行此命令编写器更新
出错仅更新composer时,请检查数据库配置的.env文件。。