title: Laravel. Passing arguments through delete request
body: <p>I'm using LaravelCollective form to delete an employee: </p>
  
  <pre><code> {!! Form::open(['method' =&gt; 'DELETE', 'action' =&gt; ['EmployeesController@destroy', $employee-&gt;id, $company-&gt;id]]) !!}
  
                  &lt;div class="form-group"&gt;
                      {!! Form::submit('Remove employee', ['class'=&gt;'btn btn-danger']) !!}
                  &lt;/div&gt;
  
   {!! Form::close() !!}
  </code></pre>
  
  <p>and want to pass 2 arguments: employee id and company id.</p>
  
  <p>My route: </p>
  
  <pre><code>Route::delete('/employees/{employee}/{company}', 'EmployeesController@destroy');
  </code></pre>
  
  <p>My controller function: </p>
  
  <pre><code>public function destroy($id, $companyId)
  {
      Employee::find($id)-&gt;delete();
  
      if($companyId == 0)
          return redirect('/employees');
      else
          return redirect('/companies/' . $companyId . "/edit");
  }
  </code></pre>
  
  <p>I'm getting an error that I'm passing only 1 parameter. Where is the problem?</p>