title: Laravel: Update route without page refresh
body: <p>I have a page that lists down all todo items stored in a database. The page / view is returned by a controller <em>TodoListController.php</em>.</p>
  
  <pre><code>public function index()
  {
      // `TodoList` is the model, ie extends Eloquent.
      $todo_lists = TodoList::all();
      return View::make('todos.index')-&gt;with('todo_lists', $todo_lists);
  }
  </code></pre>
  
  <p>What I am trying to do is to add a link that will open up a lightbox for editing an existing todo. Each todo has its own edit link; that is, one link corresponds to one todo item. Once opened, I'd also want to pre-populate the form fields with existing data / values. Upon success clicking the 'Edit' button), the lightbox should close and we immediately reflect the page with the new values ie <em>no</em> page refresh.</p>
  
  <p>Questions:</p>
  
  <ol>
  <li>If I linked the edit form to an update route eg <code>Form::model($list, array('route' =&gt; ['todos.update', $list-&gt;id], 'method' =&gt; 'PUT'))</code>, the page would have to refresh, right?</li>
  <li>Would it be more advisable to do this via AJAX? Or, maybe that's the only way in order to avoid page refresh?</li>
  </ol>
  
  <p>Thanks.</p>