[英]Laravel Error - Class 'Facade\Ignition\IgnitionServiceProvider' not found
In google cloud console, when I deploy project using command php artisan config:cache
, it shows error:在谷歌云控制台中,当我使用命令
php artisan config:cache
部署项目时,它显示错误:
In Application.php line 690: Class 'Facade\Ignition\IgnitionServiceProvider' not found
在 Application.php 第 690 行:Class 'Facade\Ignition\IgnitionServiceProvider' 未找到
You have to run the composer dump-autoload
command which won't download anything new, but looks for all of the classes it needs to include again.您必须运行
composer dump-autoload
命令,该命令不会下载任何新内容,但会查找它需要再次包含的所有类。 It just regenerates the list of all classes that need to be included in the project.它只是重新生成需要包含在项目中的所有类的列表。
composer dump-autoload
didnt work for me. composer dump-autoload
对我不起作用。 i deleted vendor folder and run composer update and i can run php artisan
again我删除了供应商文件夹并运行作曲家更新,我可以再次运行
php artisan
I had to delete the vendors folder and then run我不得不删除供应商文件夹,然后运行
composer install
to make everything fall in place and to get rid of the error!让一切都到位并摆脱错误!
Deleting the vendor folder and using the composer update
command worked for me.删除供应商文件夹并使用
composer update
命令对我有用。
first Check Server.php file is still in the root folder首先检查Server.php文件是否还在根文件夹中
<?php
/**
* Laravel - A PHP Framework For Web Artisans
*
* @package Laravel
* @author Taylor Otwell <taylor@laravel.com>
*/
$uri = urldecode(
parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
);
// This file allows us to emulate Apache's "mod_rewrite" functionality from the
// built-in PHP web server. This provides a convenient way to test a Laravel
// application without having installed a "real" web server software here.
if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
return false;
}
require_once __DIR__.'/public/index.php';
then run然后运行
composer update
and then project will start without any issue然后项目将开始没有任何问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.