简体   繁体   English

Laravel 错误 - 未找到 Class 'Facade\Ignition\IgnitionServiceProvider'

[英]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.

相关问题 未找到 Google App Engine 类“Facade\\Ignition\\IgnitionServiceProvider”上的 Laravel - Laravel on Google App Engine Class 'Facade\Ignition\IgnitionServiceProvider' not found 未找到带有 App Engine 标准 Class 'Facade\Ignition\IgnitionServiceProvider' 的 Laravel - Laravel with App Engine Standard Class 'Facade\Ignition\IgnitionServiceProvider' not found 在 docker 容器中运行 php artisan 时找不到类“Facade\Ignition\IgnitionServiceProvider” - Class "Facade\Ignition\IgnitionServiceProvider" not found when running php artisan in docker container Laravel 上的 Facade\Ignition\Exceptions\ViewException 错误? - Facade\Ignition\Exceptions\ViewException Error on Laravel? Laravel 8 - 未找到外观类 - Laravel 8 - Facade Class Not Found 每个错误都显示 Action Facade\Ignition\Http\Controllers\ExecuteSolutionController 未在 laravel 中定义 - Every error show Action Facade\Ignition\Http\Controllers\ExecuteSolutionController not defined in laravel 在laravel 5中找不到类&#39;Illuminate \\ Support \\ Facade \\ Mail&#39; - Class 'Illuminate\Support\Facade\Mail' not found in laravel 5 Laravel 7 多参数路由错误:Facade\Ignition\Exceptions\ViewException Missing required parameters for Route - Laravel 7 multi parameter route error: Facade\Ignition\Exceptions\ViewException Missing required parameters for Route Laravel Action Facade\\Ignition\\Http\\Controllers\\ExecuteSolutionController 未定义 - Laravel Action Facade\Ignition\Http\Controllers\ExecuteSolutionController not defined Laravel 未定义变量:intent Facade\Ignition\Exceptions\ViewException - Laravel Undefined variable: intent Facade\Ignition\Exceptions\ViewException
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM