'Laravel Error - Class 'Facade\Ignition\IgnitionServiceProvider' not found [closed]
In google cloud console, when I deploy project using command php artisan config:cache, it shows error :
In Application.php line 690: Class 'Facade\Ignition\IgnitionServiceProvider' not found
Solution 1:[1]
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. It just regenerates the list of all classes that need to be included in the project.
Solution 2:[2]
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!
Solution 3:[3]
composer dump-autoload didn't work for me. I deleted vendor folder and run composer update and I can run php artisan again
Solution 4:[4]
Deleting the vendor folder and using the composer update command worked for me.
Solution 5:[5]
first Check Server.php file is still in the root folder
<?php
/**
* Laravel - A PHP Framework For Web Artisans
*
* @package Laravel
* @author Taylor Otwell <[email protected]>
*/
$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
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | sta |
| Solution 2 | hackernewbie |
| Solution 3 | Henry Ecker |
| Solution 4 | Radu Linu |
| Solution 5 | Islam Elshawadfi |
