create(); Model::reguard(); } private function create() { $company_id = $this->command->argument('company'); setting()->setExtraColumns(['company_id' => $company_id]); setting()->set([ 'localisation.financial_start' => Date::now()->startOfYear()->format('d-m'), 'localisation.timezone' => 'Europe/London', 'localisation.date_format' => 'd M Y', 'localisation.date_separator' => 'space', 'localisation.percent_position' => 'after', 'invoice.number_prefix' => 'INV-', 'invoice.number_digit' => '5', 'invoice.number_next' => '1', 'invoice.item_name' => 'settings.invoice.item', 'invoice.price_name' => 'settings.invoice.price', 'invoice.quantity_name' => 'settings.invoice.quantity', 'invoice.title' => trans_choice('general.invoices', 1), 'invoice.payment_terms' => '0', 'default.payment_method' => 'offline-payments.cash.1', 'default.list_limit' => '25', 'default.use_gravatar' => '0', 'email.protocol' => 'mail', 'email.sendmail_path' => '/usr/sbin/sendmail -bs', 'schedule.send_invoice_reminder' => '0', 'schedule.invoice_days' => '1,3,5,10', 'schedule.send_bill_reminder' => '0', 'schedule.bill_days' => '10,5,3,1', 'schedule.time' => '09:00', 'wizard.completed' => '0', 'offline-payments.methods' => '[{"code":"offline-payments.cash.1","name":"Cash","order":"1","description":null},{"code":"offline-payments.bank_transfer.2","name":"Bank Transfer","order":"2","description":null}]', 'contact.type.customer' => 'customer', 'contact.type.vendor' => 'vendor', ]); } }