bill = $bill; $this->notify = $notify; $this->description = $description; } /** * Execute the job. * * @return BillHistory */ public function handle() { $description = $this->description ?: trans_choice('general.payments', 1); $bill_history = BillHistory::create([ 'company_id' => $this->bill->company_id, 'bill_id' => $this->bill->id, 'status' => $this->bill->status, 'notify' => $this->notify, 'description' => $description, ]); return $bill_history; } }