title: Error: While updating laravel 8 to 9. Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
body: <blockquote>
  <p>Nothing to install, update or remove
  Generating optimized autoload files
  Class App\Helpers\Helper located in C:/wamp64/www/vuexylaravel/app\Helpers\helpers.php does not comply
  with psr-4 autoloading standard. Skipping.
  &gt; Illuminate\Foundation\ComposerScripts::postAutoloadDump
  &gt; @php artisan package:discover --ansi</p>
  </blockquote>
  <pre><code>   Error 
  
    Undefined constant Illuminate\Http\Request::HEADER_X_FORWARDED_ALL
    at C:\wamp64\www\vuexylaravel\vendor\fideloper\proxy\config\trustedproxy.php:48
       44▕      * - 'HEADER_X_FORWARDED_AWS_ELB' (If you are using AWS Elastic Load Balancer)
       45▕      *
       46▕      * @link https://symfony.com/doc/current/deployment/proxies.html
       47▕      */
    ➜  48▕     'headers' =&gt; Illuminate\Http\Request::HEADER_X_FORWARDED_ALL,
       49▕
       50▕ ];
       51▕
  
    1   C:\wamp64\www\vuexylaravel\vendor\laravel\framework\src\Illuminate\Support\ServiceProvider.php:138
        require()
  
    2   C:\wamp64\www\vuexylaravel\vendor\fideloper\proxy\src\TrustedProxyServiceProvider.php:28
        Illuminate\Support\ServiceProvider::mergeConfigFrom(&quot;C:\wamp64\www\vuexylaravel\vendor\fideloper\proxy\config\trustedproxy.php&quot;, &quot;trustedproxy&quot;)
  Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
  </code></pre>