title: Troubles storing with laravel (Undefined property)?
body: <p>I am trying to store data to the server with laravel. I am following a tutorial and I feel like it may be slightly out of date because I was getting a 500 error earlier with an update method.</p>
  
  <pre><code>public function store()
  {
      $input = Input::json();
  
      return Player::create(array( 
          'teamName' =&gt; $input-&gt;teamName, // this is line 35
          'teamColor' =&gt; $input-&gt;teamColor
      ));
  }
  </code></pre>
  
  <p>The above is what the tutorial's syntax is like, I tried the below as well.</p>
  
  <pre><code>public function store()
  {
      $input = Input::all();
  
      return Player::create(array( 
          'teamName' =&gt; $input['teamName'], // this is line 35
          'teamColor' =&gt; $input['teamColor']
      ));
  }
  </code></pre>
  
  <p>Inside the browser I get this error.</p>
  
  <p><code>{"error":{"type":"ErrorException","message":"Undefined property: Symfony\\Component\\HttpFoundation\\ParameterBag::$teamName","file":"C:\\wamp\\www\\basketball-app-framework\\app\\controllers\\PlayersController.php","line":35}}</code></p>
  
  <p>So I feel like these issues I should be able to figure out in a matter of seconds, but I am new and really don't know where to find a clear answer. I tried searching the docs, but I can't find what I am looking for, maybe I am being blind?</p>