Problem while hosting laravel project in cpanel [closed]

  hosting, laravel, php, symfony

Parse error: syntax error, unexpected ‘:’, expecting ‘{‘ in /home2/xxxxxx/Xxxxx/vendor/symfony/polyfill-php80/bootstrap.php on line 23

I tried to host my laravel project in server but showing me this error.

I have changed the php version in Cpanel
Now it shows me
This page is not working unable to handle this request
HTTP ERROR 500

Source: Symfony Questions

LEAVE A COMMENT