title: How to pass serialized data to php, laravel?
body: <p>I am using <a href="http://johnny.github.io/jquery-sortable/" rel="nofollow">http://johnny.github.io/jquery-sortable/</a>
  I'm fine working with forms, but as it is <code>&lt;ol&gt;'s and &lt;il&gt;'s</code>, not regular form, I have <strong>no idea</strong> how to pass this data to laravel. I manage to get output into view:</p>
  
  <pre><code>....
  onDrop: function (item, container, _super) {
    $('#serialize_output').text(group.sortable("serialize").get().join("\n"))
    _super(item, container)
  },
  ....
  </code></pre>
  
  <p>Returns:</p>
  
  <pre><code> Item1,Item2,Item3,... so on
  </code></pre>
  
  <p>In:</p>
  
  <pre><code>&lt;h3&gt;Serialize result&lt;/h3&gt;
  
  &lt;pre id='serialize_output'&gt;&lt;/pre&gt;
  </code></pre>
  
  <p>Now, what do I do with this data? How do I tell laravel to grab it and perform some actions in controller? I have no idea how to pass this even to php.</p>
  
  <p>I mean, I could write in view something like <code>&lt;?php $var = '?&gt; &lt;pre id='serialize_output'&gt;&lt;/pre&gt; &lt;?php '; ?&gt;</code> then strip commas, pass to array, into hidden form field or smth, but obviously this is not how its done. What is the right way to handle it?</p>
  
  <p>Would this work: ? <a href="http://laravel.io/bin/1yn7e" rel="nofollow">http://laravel.io/bin/1yn7e</a></p>
  
  <p>If yes, what do I do next?</p>