public function checkout() { DB::transaction(function () { $this->status = 'checkout'; $this->refreshCost(true); }); }