title: Validate Parameters as a JSON String in Laravel
body: <p><strong>Front End Part</strong></p>
  
  <p>The parameters are being sent like this: </p>
  
  <p><a href="https://i.stack.imgur.com/N1g9o.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/N1g9o.png" alt="Front End sending data"></a></p>
  
  <p><strong>Laravel Request</strong></p>
  
  <pre><code>class CarCreateRequest extends FormRequest
  {
      /**
       * Determine if the user is authorized to make this request.
       *
       * @return bool
       */
      public function authorize()
      {
          //TODO: Define authorization logic, possibly a middleware
          return true;
      }  
  
      /**
       * Get the validation rules that apply to the request.
       *
       * @return array
       */
      public function rules()
      {
          return [
              'car.name' =&gt; 'present|required'
          ];
      }
  }
  </code></pre>
  
  <p><strong>Real Problem</strong></p>
  
  <p>The request class always validates to false. I checked the <a href="https://laravel.com/docs/5.7/validation#validating-arrays" rel="nofollow noreferrer">Validating Array</a> section, but it looks like this works sending parameters like this: </p>
  
  <pre><code>car[name]=Spidey Mobile
  </code></pre>
  
  <p>However, I need to send this data stringified using JSON.stringify(). </p>
  
  <p>Is there a workaround for this? It looks like dot notation isn't working since this is a JSON string rather than an array. I've tried modifying the request data before being evaluated, but I haven't found anything that works for Laravel 5.7.</p>