portal_mode == 'domain' && $company->isDirty('portal_domain')) { nlog('company observer - updated'); nlog($company->portal_domain); nlog($company->getOriginal('portal_domain')); //fire event to build new custom portal domain \Modules\Admin\Jobs\Domain\CustomDomain::dispatch($company->getOriginal('portal_domain'), $company)->onQueue('domain'); } } /** * Handle the company "deleted" event. * * @param Company $company * @return void */ public function deleted(Company $company) { event(new CompanyDocumentsDeleted($company)); } /** * Handle the company "restored" event. * * @param Company $company * @return void */ public function restored(Company $company) { // } /** * Handle the company "force deleted" event. * * @param Company $company * @return void */ public function forceDeleted(Company $company) { // } }