title: Laravel 5.8 Validation Race Condition
body: <p>I have this validation rule on <code>POST</code> request method inside a controller:</p>
  <pre class="lang-php prettyprint-override"><code>class CreateOrderController extends Controller
  {
      public function create(Request $request)
      {
          $this-&gt;validate($request, [
              'store_id' =&gt; $request-&gt;order_type === OrdersTypeConstants::P2P  ? &quot;&quot; : &quot;required|&quot; . 'exists:stores,id',
              'p2p_type' =&gt; [Rule::in([OrdersTypeConstants::P2PCOURIER, OrdersTypeConstants::P2PPURCHASE])],
              'items' =&gt; 'required_if:p2p_type,'.OrdersTypeConstants::P2PPURCHASE.'|array',
              'items.*.id' =&gt; 'nullable|numeric',
              'items.*.quantity' =&gt; 'nullable|integer|min:1',
              'items.*.adjustment' =&gt; 'nullable|numeric',
              'items.*.image' =&gt; 'nullable|string',
              'items.*.addons' =&gt; 'array',
              'items.*.reward_applied' =&gt; 'boolean',
              'items.*.replacement_strategy.type' =&gt; [
                  'string',
                  Rule::in([ItemReplacementStrategyConstants::REMOVE,ItemReplacementStrategyConstants::BEST_MATCH, ItemReplacementStrategyConstants::SPECIFIC])
              ],
              'items.*.replacement_strategy.quantity' =&gt; 'integer|min:1',
              'items.*.replacement_strategy.item_id' =&gt; 'numeric',
              'address_id' =&gt; 'exists:addresses,id,user_id,' . $client_id,
              'address_id_p1' =&gt; 'exists:addresses,id,user_id,' . $client_id,
              'use_cash_deposit' =&gt; 'boolean',
          ]);
  </code></pre>
  <p>Sometime it returns <code>The store id field is required</code> even if it is actually being <strong>sent</strong> as you can see here in the error log:
  <a href="https://i.stack.imgur.com/91erv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/91erv.png" alt="enter image description here" /></a></p>
  <p>It is only happening randomly -not consistently- only on production environment, reported only on firebase.</p>
  <p>Why could that be happening?</p>