title: Passing dynamic url value to angular js controller
body: <p>I want to pass url parameter $id is dynamic value to Angularjs controller</p>
  
  <p>My Angularjs:</p>
  
  <pre><code>$http.get('/todos/show/'+$id).success(function(data) {
    $scope.customers = data;
  });
  </code></pre>
  
  <p>My Route in laravel</p>
  
  <pre><code>Route::get('todos/show/{id?}', function($id = null)
  {
    $users = DB::table('customers')-&gt;where('id', $id)-&gt;get();
    return json_encode($users);
  });
  </code></pre>
  
  <p>Can someone help me with these.</p>