first(); $settings = [ 'currency' => 1, 'time_zone' => 'Asia/Kolkata', 'language' => 'en', 'fiscal_year' => '1-12', 'carbon_date_format' => 'Y/m/d', 'moment_date_format' => 'YYYY/MM/DD', 'notification_email' => 'noreply@crater.in', 'notify_invoice_viewed' => 'NO', 'notify_estimate_viewed' => 'NO', 'tax_per_item' => 'NO', 'discount_per_item' => 'NO', 'invoice_auto_generate' => 'YES', 'invoice_prefix' => 'INV', 'estimate_prefix' => 'EST', 'estimate_auto_generate' => 'YES', 'payment_prefix' => 'PAY', 'payment_auto_generate' => 'YES', 'save_pdf_to_disk' => 'NO', ]; CompanySetting::setSettings($settings, $user->company_id); } }