title: Laravel | nginx config not finding assets
body: <p>I am currently trying to setup Laravel 6 with Docker and Nginx.</p>
  
  <p>I have it all running through php-fpm and nginx and the actual app loads perfectly fine.</p>
  
  <p>The issue that I am facing is that it cannot find any of the asset files.</p>
  
  <p>I have the line at the top of my <code>layout.blade.php</code></p>
  
  <pre><code>&lt;link rel="stylesheet" type="text/css" href="{{ asset('css/app.css') }}" /&gt;
  </code></pre>
  
  <p>I can see that the file does exist in the folder but it's always getting a 404 inside of Chrome.</p>
  
  <p>I am using the default nginx config that is on the Laravel website with a few minor adjustments.</p>
  
  <pre><code>events {}
  
  http {
      server {
          listen 80;
          root /var/www/html/public;
  
          add_header X-Frame-Options "SAMEORIGIN";
          add_header X-XSS-Protection "1; mode=block";
          add_header X-Content-Type-Options "nosniff";
  
          index index.php index.html index.htm;
  
          charset utf-8;
  
          location / {
              try_files $uri /index.php?$query_string;
          }
  
          location = /favicon.ico { access_log off; log_not_found off; }
          location = /robots.txt  { access_log off; log_not_found off; }
  
          error_page 404 /index.php;
  
          location ~ \.php$ {
              fastcgi_split_path_info ^(.+\.php)(/.+)$;
              fastcgi_pass php:9000;
              fastcgi_index index.php;
              include fastcgi_params;
              fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
          }
  
          location ~ /\.(?!well-known).* {
              deny all;
          }
      }
  }
  
  </code></pre>
  
  <p>Navigating directly to the url <code>http://localhost/css/app.css</code> also gives me the Laravel default 404 page.</p>
  
  <p>Any help would be appreciated its racking my brain!</p>
  
  <p>I can also go into the container and see that all of the files are in the correct directories.</p>