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;
use Illuminate\Contracts\Foundation\Application;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Schema;
use Modules\Core\Services\Composer;
class InstallCommand extends Command
......@@ -356,11 +357,7 @@ class InstallCommand extends Command
*/
private function checkIfInstalled()
{
$users = $this->app['db']->table('users')->get();
if ($users) {
return true;
}
return false;
return Schema::hasTable('users');
}
}
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