Commit 2bb152dd authored by Nicolas Widart's avatar Nicolas Widart

Using the schema to check installation

parent 745de6ee
...@@ -5,6 +5,7 @@ use Illuminate\Console\Command; ...@@ -5,6 +5,7 @@ use Illuminate\Console\Command;
use Illuminate\Contracts\Foundation\Application; use Illuminate\Contracts\Foundation\Application;
use Illuminate\Filesystem\Filesystem; use Illuminate\Filesystem\Filesystem;
use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Schema;
use Modules\Core\Services\Composer; use Modules\Core\Services\Composer;
class InstallCommand extends Command class InstallCommand extends Command
...@@ -356,11 +357,7 @@ class InstallCommand extends Command ...@@ -356,11 +357,7 @@ class InstallCommand extends Command
*/ */
private function checkIfInstalled() private function checkIfInstalled()
{ {
$users = $this->app['db']->table('users')->get(); return Schema::hasTable('users');
if ($users) {
return true;
}
return false;
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment