title: Laravel with heroku -> how do I fix app_key problem?
body: <p>I have been working on a Laravel application and started to push to Heroku for production testing. I am following the Heroku documentation for a laravel application and am getting the following error:
  <strong>"The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths."</strong></p>
  
  <p>I have been searching for similiar problems and solutions and all of which I ahve tried; they say to run:</p>
  
  <pre><code>php artisan config:clear
  php artisan config:cache
  </code></pre>
  
  <p>even generate a new key sometimes. None of this works though. I do have a .env as well as the .env.exmaple.</p>
  
  <p>this is in the app.php:</p>
  
  <pre><code>'key' =&gt; env('APP_KEY', 'hApwwlSuskUu66CxJTWzCKS17fkExEkodmJiVXbMf0Q='),
  
      'cipher' =&gt; 'AES-256-CBC',
  </code></pre>
  
  <p>and equally the .env has this line after the cache:</p>
  
  <pre><code>APP_KEY=base64:hApwwlSuskUu66CxJTWzCKS17fkExEkodmJiVXbMf0Q=
  </code></pre>
  
  <p>What else do I do? I followed the Heroku documentation to the letter and beyond. </p>
  
  <p>Reference:
  Laravel 6.18.3
  php: 7.3.2
  composer: 1.9.3
  heroku 7.22.2</p>