title: Passing data from blade to controller Laravel
body: <p>I want to pass a object from the blade file to the controller file. The purpose is when the user click an edit button the user will get a form which is filled with the previous input data. I am using this code in the blade file:</p>
  
  <pre><code>&lt;a href="/feestype/{{ $feesType-&gt;id }}/edit" class="btn btn-info btn-sm"&gt;Edit&lt;/a&gt;
  </code></pre>
  
  <p>But When I want to get the passed object from the controller's edit method I get a null. My Controller code is like this now:</p>
  
  <pre><code>public function edit(FeesType $feesType)
  {
      //
      dump($feesType-&gt;name);
      return view('feestype.edit',['feesType'=&gt;$feesType]);
  }
  </code></pre>
  
  <p>Here I have dump the $feesType object but I get a null. Please help me how can I solve this problem.
  Thanks in advance</p>