mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-01 03:14:47 -04:00
Fixes for creating docker user on first load
This commit is contained in:
parent
95e0aa6547
commit
d52f06c05c
@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
namespace App\Console\Commands;
|
namespace App\Console\Commands;
|
||||||
|
|
||||||
|
use App\DataMapper\ClientRegistrationFields;
|
||||||
use App\DataMapper\CompanySettings;
|
use App\DataMapper\CompanySettings;
|
||||||
use App\DataMapper\FeesAndLimits;
|
use App\DataMapper\FeesAndLimits;
|
||||||
use App\Events\Invoice\InvoiceWasCreated;
|
use App\Events\Invoice\InvoiceWasCreated;
|
||||||
@ -94,7 +95,10 @@ class CreateAccount extends Command
|
|||||||
'portal_domain' => config('ninja.app_url'),
|
'portal_domain' => config('ninja.app_url'),
|
||||||
'portal_mode' => 'domain',
|
'portal_mode' => 'domain',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
$company->client_registration_fields = ClientRegistrationFields::generate();
|
||||||
|
$company->save();
|
||||||
|
|
||||||
$account->default_company_id = $company->id;
|
$account->default_company_id = $company->id;
|
||||||
$account->save();
|
$account->save();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user