I developed a website using php 7.1.4 and Laravel 5.6. It works well on localhost, but after I finished it I found that the server I have to upload it to, has php 7.0.3. It doesn't work at all, all it shows is 500 internal server error.
I tried to change the version of MAMP to 7.0, and it shows this error:
[03-Jul-2018 14:17:22 Europe/Bucharest] PHP Parse error: syntax error, unexpected '?' in /Applications/MAMP/htdocs/agroinfo/vendor/symfony/http-foundation/Response.php on line 491 [03-Jul-2018 14:17:22 Europe/Bucharest] PHP Fatal error: Exception thrown without a stack frame in Unknown on line 0
Is there any way to make the project work with the current version of PHP (PHP 7.0.3). The reason I can't change the version of PHP on the server is that there is already another project there.