filled('city', 'state', 'zip', 'country')) { return response()->json(['rate' => 0]); } $user = Spark::user(); $user->forceFill([ 'vat_id' => $request->vat_id, 'billing_city' => $request->city, 'billing_state' => $request->state, 'billing_zip' => $request->zip, 'billing_country' => $request->country, 'card_country' => $request->country, ]); return response()->json([ 'rate' => $user->taxPercentage() ]); } }