Nginx Laravel setup to eliminate 404 error

In site configuration replace next lines
/etc/nginx/sites-available/default

location / {
try_files $uri $uri/ /index.php;
}

 

#location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
#try_files $uri $uri/ =404;
try_files $uri $uri/ /index.php;
# }