title: Angularjs and Laravel service is not call?
body: <p>I'm using Angularjs and Laravel5. when i call autocomplete textbox, service call no response. my code is....</p>
  
  <p><strong>userdefined.js</strong></p>
  
  <pre><code>var app=angular.module('app',[]);
    app.controller('ctrl',function($scope,$http){
  
        $http.get("http://localhost:85/xamppserver/CODE_8JULY2015/public/front/state/w")
         .success(function(response) {
          $scope.availableTags = response;
          });  
  
  
  
  
      $scope.complete=function(){
        console.log($scope.availableTags);
      $( "#tags" ).autocomplete({
        source: $scope.availableTags
      });
      } 
  
    });
  </code></pre>
  
  <p><strong>index.blade.php</strong></p>
  
  <pre><code>&lt;div class="form-group" ng-app="app" ng-controller="ctrl"&gt;
                      &lt;label&gt;State&lt;/label&gt;                    
                      &lt;input type="text" class="form-control" placeholder="State" id="tags" ng-keyup="complete()"&gt;                                        
                  &lt;/div&gt;
  </code></pre>
  
  <p><strong>route.php</strong></p>
  
  <pre><code>Route::get('state/{statename}', ['as' =&gt; 'customer','uses' =&gt; 'CustomerController@selectstate']);
  </code></pre>
  
  <p><strong>CustomerController.php</strong></p>
  
  <pre><code>public function selectstate($statename)
      {       
          //$customer = new Customer();               
          //$result = $customer-&gt;where('client_state','like', '%'.$Filter.'%')-&gt;get(array('client_state'));
  
          $state = new State();       
          $result = $state-&gt;where('state_name','like', '%'.$statename.'%')-&gt;get(array('state_name'));
  
          header('Content-type: application/json');
          echo json_encode($result);
      }
  </code></pre>
  
  <p>how to call service using angularjs?</p>