title: Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) in
body: <p>I am uploading Laravel website without database. On my localhost everything is fine, but when I try to upload it on live server and run the URL, it shows a parse error:</p>
  
  <p><img src="https://i.stack.imgur.com/TQxkC.png" alt="Parse error"></p>
  
  <p>I have changed index.php something like that</p>
  
  <pre><code>require __DIR__.'/vendor/autoload.php';
  
  $app = require_once __DIR__.'/bootstrap/app.php';
  </code></pre>
  
  <p>My public folder files and other contents are in public_html dir. I have tried many times, but still not remove error.</p>