title: get $_post in laravel from javascript $.post
body: <p>I have an html with a script that is like so (btw, HAVe to use old fashioned post in my html for reasons)...</p>
  
  <pre><code>@extends('layout')
  // ... includes for jquery and ajax
  &lt;script&gt;
  var theVariableINeedInLaravel = "SomeInterestingStringI'mSure"; // in reality, this is a stringify.
  $.post ("foo", function(theVariableINeedInLaravel) {
  }
  &lt;/script&gt;
  @stop
  </code></pre>
  
  <p>Then in routes.php...</p>
  
  <pre><code>&lt;?php
  Route::post('foo', 'ThatOneController@getValue');
  ?&gt;
  </code></pre>
  
  <p>Then, in the related controller....
  ThatOneController.php</p>
  
  <pre><code>class ThatOneController extends \BaseController{
      public function getValue(){
      error_log(print_r($_POST,true)); // returns nothing.
      error_log(print_r(input::all()); // returns nothing.
  }
  </code></pre>
  
  <p>}</p>
  
  <p>Or, an alternate version of the function...</p>
  
  <pre><code>public function getValue(Request $request){
  error_log(print_r($request-&gt;all()); // returns nothing.
  
  }
  </code></pre>
  
  <p>None of them seem to work. How can I get my post variable?</p>