title: Validate sub json object in form validation laravel 5.1?
body: <p>I am sending json object with sub json object to server.I want to validate sub json object in laravel5.1 form validation method.</p>
  
  <p>My object is,</p>
  
  <pre><code>    {
      "empType": {
          "id": 2,
          "title": "Part Time",
          "status": 1
      },
      "salutation": "Mr",
      "name": "Shihabuddeen",
      "employee_code": "EMP1001"
  }
  </code></pre>
  
  <p>My form validation method is,</p>
  
  <pre><code> public function rules() {
          return [
              'salutation' =&gt; ['required'],
              'name' =&gt; ['required', 'max:100'],
              'employee_code' =&gt; ['required', 'max:100'],
              "empType.id" =&gt; ['required', 'integer'],
          ];
      }
  </code></pre>
  
  <p>Here all other validations are working fine except <code>"empType.id" =&gt; ['required', 'integer']</code>. </p>
  
  <p>Is there any way to do this validation?</p>