title: Passing multiple parameters to controller in Laravel 5
body: <p>In my application, a user has the ability to remind another user about an event invitation. To do that, I need to pass both the IDs of the event, and of the user to be invited.</p>
  
  <p>In my route file, I have:</p>
  
  <pre><code>Route::get('events/{id}/remind', [
  'as' =&gt; 'remindHelper', 'uses' =&gt; 'EventsController@remindHelper']);
  </code></pre>
  
  <p>In my view, I have:</p>
  
  <pre><code>{!!link_to_route('remindHelper', 'Remind User', $parameters = array($eventid = $event-&gt;id, $userid = $invitee-&gt;id) )!!}
  </code></pre>
  
  <p>In my controller, I have:</p>
  
  <pre><code>    public function remindHelper($eventid, $userid)
  {
      $event = Events::findOrFail($eventid);
      $user = User::findOrFail($userid);
      $invitees = $this-&gt;user-&gt;friendsOfMine;
      $invited = $event-&gt;helpers;
      $groups = $this-&gt;user-&gt;groupOwner()-&gt;get();
      return view('events.invite_groups', compact('event', 'invitees', 'invited', 'groups'));
  }
  </code></pre>
  
  <p>However, when I hit that route, I receive the following error:</p>
  
  <pre><code>Missing argument 2 for App\Http\Controllers\EventsController::remindHelper()
  </code></pre>
  
  <p>I'm sure I have a formatting error in my view, but I've been unable to diagnose it. Is there a more efficient way to pass multiple arguments to a controller?</p>