title: Volly JsonArrayRequest not getting data from Laravel website
body: <p>I am trying to get jsonArray from my laravel site using volly in android application, but iam getting nothing, even errorlistner method does not get fired. 
  I know something is wrong from returned laravel response but i cannot figured it. Please some one visit both url and point what is missing. I get correct jsonArray while debuging if i swap the request with second url . Here are both url</p>
  
  <pre><code>//this returns nothing in Volly  .
  public static String urlPath = "http://staging.megabix.com/api/v1/terms/1/subTerms"
  
  //This one works fine
  
  public static String urlPath = "http://shakeelnawaz.com/soccerquiz/process.php?action=show_category"; 
  </code></pre>
  
  <p>Following is my code for volly request </p>
  
  <pre><code>public void JSON_HTTP_CALL() {
  
      RequestOfJSonArray = new JsonArrayRequest(HTTP_JSON_URL,
  
              new Response.Listener&lt;JSONArray&gt;() {
                  @Override
                  public void onResponse(JSONArray response) {
                      Log.d("shahid", "onResponse: "+response);
  
                      ParseJSonResponse(response);
                  }
              },
              new Response.ErrorListener() {
                  @Override
                  public void onErrorResponse(VolleyError error) {
                      Log.d("shahid", "Error getting Response: ");
  
                  }
              });
  </code></pre>
  
  <p>On my Laravel website i am using this code.</p>
  
  <pre><code>public function getSubTerms(Term $term){
      $subTerms= $term-&gt;subTerms;
      $a=$subTerms;
  
      //This does not work in volly
       return $a;
  
      //Nor this worked
      return response()-&gt;json($a,200);
  </code></pre>
  
  <p>I shall be very thankful if someone can help me in this regard. </p>