title: Laravel null POST data in controller
body: <p>A few days ago I started to learn laravel on laracasts and I have a small problem.</p>
  
  <p>When I submit a form data using post method and want to access this data in my controller, I have an empty value.</p>
  
  <p>Form:</p>
  
  <pre><code>&lt;form method="POST" action="{{ url('/costs')}}"&gt;
  
  {{ csrf_field() }}
  
    &lt;div class="form-group"&gt;
      &lt;label for="cost-title"&gt;Cost title&lt;/label&gt;
      &lt;input type="text" class="form-control" id="cost-title" name="title" placeholder="Enter cost title"&gt;
    &lt;/div&gt;
  
    &lt;div class="form-group"&gt;
      &lt;label for="cost-price"&gt;Price&lt;/label&gt;
      &lt;input type="text" class="form-control" id="cost-price" name="price" placeholder="Enter price"&gt;
    &lt;/div&gt;
  
    &lt;button type="submit" class="btn btn-primary"&gt;Submit&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Controller:</p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers;
  
  use App\Cost;
  
  class CostsController extends Controller
  {
      public function index(){
  
          $costs = Cost::all();
  
          return view('costs.index', compact('costs'));
  
      }
  
      public function show(Cost $cost){
  
          return view('costs.show', compact('cost'));
  
      }
  
      public function create(Cost $cost){
  
          return view('costs.create');
  
      }
  
      public function store(){
          dd(request()-&gt;all);
      }
  }
  </code></pre>
  
  <p>In my routes I'm triggering @store  using post method:</p>
  
  <pre><code>Route::get('/costs', 'CostsController@index');
  Route::get('/cost/{cost}', 'CostsController@show');
  Route::get('/costs/create', 'CostsController@create');
  
  Route::post('/costs', 'CostsController@store');
  </code></pre>
  
  <p>And when I try to dump and die the requests:</p>
  
  <pre><code>public function store(){
          dd(request()-&gt;all);
      }
  </code></pre>
  
  <p>I have a null value. Can you please explain me why I can't see any data here?</p>