php artisan命令在将evenvironment更改为local后不起作用


php artisan command not working after changed evnvironment to local

我在bootstrap/start.php 中启用了本地环境设置

$env = $app->detectEnvironment(array(
    'local' => array('homestead', 'localmachine'),
));

之后,当我运行任何php artisan命令时,它都不会给出任何响应。但如果去掉localmachine,一切都会恢复正常。

Laravel Framework版本4.2.11

重新生成包的类映射可能是个好主意。尝试

 composer dump-autoload

然后是

  composer update

希望能有所帮助!