Laravel validator response nested arrays
<p>Is it possible to expand validator responses from nested arrays. Typically Laravel responds with the "dot notation" for example:</p>

<pre><code>    [
        'organisation.name'          =&gt; 'required|max:60|min:3',
        'organisation.avatar'        =&gt; '',
        'organisation.phone'         =&gt; 'required|max:25|min:5',
        'organisation.paid_staff'    =&gt; 'required|numeric'
    ]
</code></pre>

<p>An error with <code>organisation.name</code> wold return:</p>

<pre><code>{
  "message": "422 Unprocessable Entity",
  "errors": {
    "organisation.name": [
      "The organisation name has already been taken."
    ]
  },
  "statusCode": 422
};
</code></pre>

<p>Where i would like to have the dot notation expanded as such:</p>

<pre><code>{
  "message": "422 Unprocessable Entity",
  "errors": {
    "organisation": {
        "name": [
            "The organisation name has already been taken."
        ]
    }
  },
  "statusCode": 422
};
</code></pre>

<p>Can anyone shed light on this?</p>