1、
The above problem occurs because the php version is lower than 5.6, because the original default php of my system is 5.3, and the php installed with laravel is the specified 5.6.21 version, so I am executing the php artisan and php composer commands corresponding to laravel.
When you need to specify which php to execute, that is, you need to specify the absolute path of php.
2. Error code: root directory>artisan file