We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56a3ba8 commit 7b8de7bCopy full SHA for 7b8de7b
1 file changed
Providers/CoreServiceProvider.php
@@ -61,13 +61,15 @@ public function boot(Dispatcher $dispatcher)
61
public function register()
62
{
63
$this->app->singleton('asgard.isInstalled', function ($app) {
64
+ $envFileLocation = "{$app->environmentPath()}/{$app->environmentFile()}";
65
+
66
try {
67
$hasTable = Schema::hasTable('setting__settings');
68
} catch (\Exception $e) {
69
$hasTable = false;
70
}
71
- return $app['files']->isFile(base_path('.env')) && $hasTable;
72
+ return $app['files']->isFile($envFileLocation) && $hasTable;
73
});
74
75
$this->registerCommands();
0 commit comments