Laravel 10 has problem deploying to live site on Ubuntu 20 LTS
I can work Laravel 10 on my Windows 11 Pro with Laragon, but when I tried to deploy Laravel 10 project to live site with Ubuntu 20 LTS Apache2 just feels it only supports Laravel 8 at this stage. Anyone had same issues?
$ composer install
Problem 1
- Installation request for laravel/framework v10.20.0 -> satisfiable by laravel/framework[v10.20.0].
- laravel/framework v10.20.0 requires composer-runtime-api ^2.2 -> no matching package found.
Problem 2
- laravel/framework v10.20.0 requires composer-runtime-api ^2.2 -> no matching package found.
- spatie/laravel-ignition 2.3.0 requires illuminate/support ^10.0 -> satisfiable by laravel/framework[v10.20.0].
- Installation request for spatie/laravel-ignition 2.3.0 -> satisfiable by spatie/laravel-ignition[2.3.0].
Now, narrow down to my laravel 10 php is version 8.1.22, but the /var/log/php/error.log showing=> [php7:error] [pid 1356094] [client 34.79.162.186:38810] PHP Parse error: syntax error, unexpected '|', expecting variable (T_VARIABLE) in /var/www/laravelapp/vendor/laravel/prompts/src/helpers.php on line 11