mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Updates for ronin
This commit is contained in:
parent
e9ef343b8f
commit
12a127a3e7
@ -100,6 +100,31 @@ class CreateSingleAccount extends Command
|
|||||||
$this->warmCache();
|
$this->warmCache();
|
||||||
|
|
||||||
$this->createSmallAccount();
|
$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()
|
private function createSmallAccount()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user