Invoice::class, // 'credits' => \App\Models\Credit::class, 'proposals' => Proposal::class, ]); Blade::if('env', function ($environment) { return config('ninja.environment') === $environment; }); Schema::defaultStringLength(191); Account::observe(AccountObserver::class); BillingSubscription::observe(BillingSubscriptionObserver::class); Client::observe(ClientObserver::class); ClientSubscription::observe(ClientSubscriptionObserver::class); Company::observe(CompanyObserver::class); CompanyGateway::observe(CompanyGatewayObserver::class); CompanyToken::observe(CompanyTokenObserver::class); Credit::observe(CreditObserver::class); Expense::observe(ExpenseObserver::class); Invoice::observe(InvoiceObserver::class); Payment::observe(PaymentObserver::class); Product::observe(ProductObserver::class); Proposal::observe(ProposalObserver::class); Quote::observe(QuoteObserver::class); Task::observe(TaskObserver::class); User::observe(UserObserver::class); // Queue::before(function (JobProcessing $event) { // // \Log::info('Event Job '.$event->connectionName); // \Log::error('Event Job '.$event->job->getJobId); // // \Log::info('Event Job '.$event->job->payload()); // }); //! Update Posted AT // Queue::after(function (JobProcessed $event) { // // \Log::info('Event Job '.$event->connectionName); // \Log::error('Event Job '.$event->job->getJobId); // // \Log::info('Event Job '.$event->job->payload()); // }); } /** * Register any application services. * * @return void */ public function register() { $this->loadHelpers(); } protected function loadHelpers() { foreach (glob(__DIR__.'/../Helpers/*.php') as $filename) { require_once $filename; } } }