When I try to run composer update it gives me that error message
This package requires php ^7.1.3 but your PHP version (7.0.33) does not satisfy that requirement.
and when I try composer dump-autoload on my laravel app it gives me
Parse error: syntax error, unexpected '=' in /home2/elmohare/public_html/okttob/vendor/laravel/framework/src/Illuminate/Support/Arr.php on line 380
NOTE :: the app works great on my localhost but I have this problem only on my server
when I try php -v
it gives me
PHP 7.3.5 (cli) (built: May 7 2019 16:13:36) ( NTS )
Copyright (c) 1997-2018 The PHP Group
and I searched about this problem, all people say that apache version is different of php cli version, but the real problem is I've made phpinfo()
file on my server to see the apache php verison and it gave me also
PHP Version 7.3.5
So it seems right, anyone knows the solution?