title: Why get method not work in Laravel and AngularJS project
body: <p>I want to develop simple front end AngularJS and backend Laravel. I don't know why my AngularJS route is not connected with laravel route.It keep mention as <code>GET http://localhost/todos 404 (Not Found)</code>. I hope someone can help me to solve it. Thanks in advance.</p>
  
  <p>Hello.php</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;Laravel + Angularjs&lt;/title&gt;
      &lt;link rel="stylesheet" type="text/css" href="css/bootstrap.min.css"&gt;
      &lt;script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.5/angular.min.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body ng-App&gt;
      &lt;div id="todos" ng-controller="Todoctrl"&gt;
      &lt;h3 class="page-header"&gt;Todos&lt;small ng-if="remaining()"&gt;{{remaining()}} remaining&lt;/small&gt;
      &lt;/h3&gt;
      &lt;ul  class="unstyled"&gt;
          &lt;li ng-repeat="todo in todos"&gt;
              &lt;input type="checkbox" ng-model="todo.done"&gt;
              {{todo.text}}
          &lt;/li&gt;
      &lt;/ul&gt;
      &lt;/div&gt;
  &lt;/script&gt;
      &lt;script src="js/app.js"&gt;
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Todo.php</p>
  
  <pre><code>&lt;?php
  
  namespace App;
  
  use Illuminate\Database\Eloquent\Model;
  
  class Todo extends Model
  {
      protected $guarderd = [];
  
  }
  </code></pre>
  
  <p>App.js</p>
  
  <pre><code>function Todoctrl($scope,$http){
      $http.get("/todos").success(function(todos){
          $scope.todos = todos;
      });
      $scope.remaining = function(){
          var count = 0;
          angular.forEach($scope.todos,function(todo){
              count == todo.done ? 0 : 1;
          });
  
      }
  }
  </code></pre>
  
  <p>Route.php</p>
  
  <pre><code>Route::get('/', function () {
      return view('welcome');
  });
  Route::get('/',function(){
      return view('hello');
  });
  Route::get('/todos',function(){
      return Todo::all();
  });
  </code></pre>