diff --git a/app/Console/Commands/CreateSingleAccount.php b/app/Console/Commands/CreateSingleAccount.php index 07a1355fb103..7170eec2c27f 100644 --- a/app/Console/Commands/CreateSingleAccount.php +++ b/app/Console/Commands/CreateSingleAccount.php @@ -100,6 +100,31 @@ class CreateSingleAccount extends Command $this->warmCache(); $this->createSmallAccount(); + + + try { + $pdo = \DB::connection('ronin')->getPdo(); + + if(class_exists(\Modules\Ronin\app\Models\Admin::class)){ + $this->info('Creating Ronin Account'); + $this->createRoninAccount(); + } + + } catch (\Exception $e) { + + } + + } + + private function createRoninAccount() + { + $admin = \Modules\Ronin\app\Models\Admin::create([ + 'first_name' => 'small', + 'last_name' => 'example', + 'email' => 'small@example.com', + 'password' => Hash::make('password'), + ]); + } private function createSmallAccount()