*/ app()->singleton('currencies', function ($app) { return Currency::query()->orderBy('name')->get(); }); /** @return \Illuminate\Support\Collection */ app()->singleton('languages', function ($app) { return Language::query()->orderBy('name')->get(); }); /** @return \Illuminate\Support\Collection */ app()->singleton('countries', function ($app) { return Country::query()->orderBy('name')->get(); }); /** @return \Illuminate\Support\Collection */ app()->singleton('payment_types', function ($app) { return PaymentTerm::query()->orderBy('num_days')->get(); }); /** @return \Illuminate\Support\Collection */ app()->singleton('industries', function ($app) { return Industry::query()->orderBy('name')->get(); }); /** @return \Illuminate\Support\Collection */ app()->singleton('banks', function ($app) { return Bank::query()->orderBy('name')->get(); }); /** @return \Illuminate\Support\Collection */ app()->singleton('date_formats', function ($app) { return DateFormat::query()->orderBy('id')->get(); }); /** @return \Illuminate\Support\Collection */ app()->singleton('timezones', function ($app) { return Timezone::query()->orderBy('id')->get(); }); /** @return \Illuminate\Support\Collection */ app()->singleton('gateways', function ($app) { return Gateway::query()->orderBy('id')->get(); }); /** @return \Illuminate\Support\Collection */ app()->singleton('industries', function ($app) { return Industry::query()->orderBy('id')->get(); }); /** @return \Illuminate\Support\Collection */ app()->singleton('sizes', function ($app) { return Size::query()->orderBy('id')->get(); }); app()->singleton('templates', function ($app) { return [ 'invoice' => [ 'subject' => EmailTemplateDefaults::emailInvoiceSubject(), 'body' => EmailTemplateDefaults::emailInvoiceTemplate(), ], 'quote' => [ 'subject' => EmailTemplateDefaults::emailQuoteSubject(), 'body' => EmailTemplateDefaults::emailQuoteTemplate(), ], 'payment' => [ 'subject' => EmailTemplateDefaults::emailPaymentSubject(), 'body' => EmailTemplateDefaults::emailPaymentTemplate(), ], 'reminder1' => [ 'subject' => EmailTemplateDefaults::emailReminder1Subject(), 'body' => EmailTemplateDefaults::emailReminder1Template(), ], 'reminder2' => [ 'subject' => EmailTemplateDefaults::emailReminder2Subject(), 'body' => EmailTemplateDefaults::emailReminder2Template(), ], 'reminder3' => [ 'subject' => EmailTemplateDefaults::emailReminder3Subject(), 'body' => EmailTemplateDefaults::emailReminder3Template(), ], 'reminder_endless' => [ 'subject' => EmailTemplateDefaults::emailReminderEndlessSubject(), 'body' => EmailTemplateDefaults::emailReminderEndlessTemplate(), ], 'statement' => [ 'subject' => EmailTemplateDefaults::emailStatementSubject(), 'body' => EmailTemplateDefaults::emailStatementTemplate(), ], ]; }); } public function boot() { } }