Select2 Ajax Laravel - results not showing
<p>JS      </p>

<pre><code>$("#location").select2({
        ajax: {
        url: "/search/locations",
        dataType: 'json',
        delay: 250,
        data: function (params) {
          return {
            q: params.term, // search term
          };
        },
        processResults: function (data) {
            return {
            results: data
            };
        },
        cache: true
      },
        minimumInputLength: 1,
        placeholder: function(){
        $(this).data('placeholder');
        }
      });
</code></pre>

<p>Controller   </p>

<pre><code> public function searchLocations()
        {
            $q = Input::get('q');
            $results = Location::where('suburb', 'LIKE', '%'. $q . '%')
               -&gt;orWhere('state', 'LIKE', '%'. $q . '%')
               -&gt;orWhere('postcode', 'LIKE', '%'. $q . '%')
               -&gt;get();
            return Response::json( $results ); 
        }
</code></pre>

<p>I can see the ajax request being made, and recieving data back, but it doesn't show the results. I'm using the latest version of Select2 (v4.0.2)</p>