public function update(StoreDiscount $request, Discount $id): RedirectResponse 	{ 		$id->update([ 			'code' => $request->code, 			'valid_from' => formatTimestamp($request->valid_from, 'Y-m-d'), 			'valid_to' => formatTimestamp($request->valid_to, 'Y-m-d'), 			'amount' => $request->amount, 			'active' => $request->boolean('active'), 		]);  		return $this->redirectFromSave('discounts.list'); 	}