I try to execute any command via ssh, for example php artisan route:list and gives this error

 In ArgvInput.php line 281: Invalid argument supplied for foreach() 

    1 answer 1

    Judging by the information from laracasts, the problem with php is the register_argc_argv setting.

    It is necessary to enable register_argc_argv in php.ini .

    The decision was taken from here and from here .