do = $domain ? Domain::where('name',$domain)->singleOrFail() : NULL; $this->onQueue(self::QUEUE); } public function __get($key): mixed { switch ($key) { case 'subject': return sprintf('%s %s',$this->do?->name,$this->file); default: return NULL; } } /** * Execute the job. * * @return void * @throws FileNotFoundException */ public function handle() { $to = new Tic; $to->load(storage_path('app').'/'.$this->file); Log::info(sprintf('%s:= Processed [%s] storing [%s] as id [%d]',self::LOGKEY,$this->file,$to->fo->name,$to->fo->id)); unlink(storage_path('app').'/'.$this->file); if ($to->isNodelist()) NodelistImport::dispatch($to->fo,$this->domain); } }