Fix checking specific environment file

This commit is contained in:
printempw 2017-11-09 16:32:18 +08:00
parent e5db3a720c
commit 08afd5df89

View File

@ -35,7 +35,7 @@ class BootServiceProvider extends ServiceProvider
protected function checkFilePermissions()
{
// check dotenv
if (!file_exists(base_path('.env'))) {
if (!file_exists(app()->environmentFile())) {
throw new PrettyPageException(trans('setup.file.no-dot-env'), -1);
}