-1

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

Gleb Kemarsky
  • 10,160
  • 7
  • 43
  • 68
Rushikesh
  • 117
  • 1
  • 2
  • 13

5 Answers5

3

composer dump-autoload didn't work for me. I deleted vendor folder and run composer update and I can run php artisan again

Henry Ecker
  • 34,399
  • 18
  • 41
  • 57
3

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!

hackernewbie
  • 1,606
  • 20
  • 13
2

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.

STA
  • 30,729
  • 8
  • 45
  • 59
  • This worked for me also but note though that someone said he applied the same `composer dump-autoload` solution but it broke his application instead: https://stackoverflow.com/questions/58087153/laravel-with-app-engine-standard-class-facade-ignition-ignitionserviceprovider – Ekanem Eno Mar 31 '21 at 18:56
0

Deleting the vendor folder and using the composer update command worked for me.

Radu Linu
  • 1,143
  • 13
  • 29
0

first Check Server.php file is still in the root folder

<?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