title: Getting '500 | SERVER ERROR' after delpoying laravel 8 app on digitalocean
body: <p>I am getting '500 |server error' after deploying my laravel 8 small website to digitalocean running nginx.My ngix configuration is successfully tested and .env is well set up.</p>
  <p><a href="https://i.stack.imgur.com/cwn11.jpg" rel="nofollow noreferrer">Routes are accessible as shown in this screenshot but still giving me the server error</a></p>
  <p>I have also tried below command:
  php artisan key:generate
  php artisan cache:clear
  php artisan clear-compiled
  sudo chmod -R 777 &lt;laravel_directory&gt;/storage
  sudo chmod -R 775 &lt;laravel_directory&gt;/bootstrap
  composer dump-autoload
  php artisan optimize</p>
  <p>Trying the above commands and other online guides didn't solve anything. Any help will be highly appreciated. Thank you</p>