bill = $bill; } /** * Execute the job. * * @return Bill */ public function handle() { $clone = $this->bill->duplicate(); // Add bill history BillHistory::create([ 'company_id' => session('company_id'), 'bill_id' => $clone->id, 'status_code' => 'draft', 'notify' => 0, 'description' => trans('messages.success.added', ['type' => $clone->bill_number]), ]); return $clone; } }