title: Class 'Way\Generators\GeneratorsServiceProvider' not found
body: <p>I’m attempting to get Laravel running on Google App Engine Standard. I already had it working on flexible, but requirements changed and we need standard now. I’m using the PHP 7.2 environment with Laravel 5.7. The deploy works but when trying to visit a page, I just get an error in the logs:</p>
  
  <pre><code>Symfony\Component\Debug\Exception\FatalThrowableError: Class 'Way\Generators\GeneratorsServiceProvider' not found
  at Illuminate\Foundation\Application-&gt;register (/srv/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:662)
  </code></pre>
  
  <p>Line 662 for me locally at least is just <code>return new $provider($this);</code> which doesn’t seem to be explicitly referencing the generators package.</p>
  
  <p>That generator package appears to be <code>way/generators</code> but when I do <code>composer require way/generators</code> locally, it spits out a million different warnings followed by</p>
  
  <pre><code>&gt; Illuminate\Foundation\ComposerScripts::postAutoloadDump
  &gt; @php artisan package:discover --ansi
  
  In GeneratorsServiceProvider.php line 58:
  
    Call to undefined method Illuminate\Foundation\Application::share()  
  
  
  Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
  </code></pre>
  
  <p>From what I’ve read Laravel > 5 does not need the generators package as it already has it included but for some reason on GAE it’s trying to reference it (locally it runs fine with <code>artisan serve</code>). I’ve tried all sorts of composer post install commands, but nothing has helped.</p>
  
  <pre><code>"post-install-cmd": [
              "php artisan cache:clear",
              "php artisan optimize:clear",
              "php artisan config:clear",
              "php artisan config:cache",
              "Illuminate\\Foundation\\ComposerScripts::postInstall",
              "php artisan optimize",
              "chmod -R 755 bootstrap\/cache"
          ]
  </code></pre>