Laravel Web安装程序错误.env文件

时间:2018-05-03 14:11:14

标签: php laravel

我从git RachidLaasri / LaravelInstaller安装,在最后一个stept中,当我尝试安装.env文件时出现错误。

  

FatalThrowableError(E_ERROR)
  不在对象上下文中时使用$ this

private static function generateKey($outputLog)
{
    try{
        if (config('installer.final.key')){
            Artisan::call('key:generate', ["--force"=> true], $outputLog);
        }
    }
    catch(Exception $e){
        return $this->response($e->getMessage());
    }

    return $outputLog;
}

2 个答案:

答案 0 :(得分:0)

这个库中有一个明显的错误,它从静态上下文中调用$this。尝试使用以下多种官方方式安装Laravel:https://laravel.com/docs/master/installation

答案 1 :(得分:0)

已修复:Windows Environment Variables

拉新版本它应该可以正常工作。

相关问题