title: Laravel - Missing argument 2 for UserController::edit()
body: <p>I'm using the framework Laravel.</p>
  
  <p>I have 2 tables (Users and Persons). When I want to edit the user and at the same time the person, I get the error message:</p>
  
  <blockquote>
    <p>Missing argument 2 for UserController::edit()</p>
  </blockquote>
  
  <p>Table Users</p>
  
  <pre><code>CREATE TABLE IF NOT EXISTS `festival_aid`.`users` (
    `user_id` BIGINT NOT NULL AUTO_INCREMENT,
    `user_username` VARCHAR(45) NOT NULL,
    `user_email` VARCHAR(45) NOT NULL,
    `user_password` CHAR(32) NOT NULL,
    `user_salt` CHAR(32) NOT NULL,
    `user_created` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
    `user_modified` TIMESTAMP NULL,
    `user_deleted` TIMESTAMP NULL,
    `user_lastlogin` TIMESTAMP NULL,
    `user_locked` TIMESTAMP NULL,
    `user_token` VARCHAR(128) NULL,
    `user_confirmed` TIMESTAMP NULL,
    PRIMARY KEY (`user_id`, `person_id`),
    UNIQUE INDEX `user_email_UNIQUE` (`user_email` ASC),
    INDEX `fk_users_persons1_idx` (`person_id` ASC),
    CONSTRAINT `fk_users_persons1`
      FOREIGN KEY (`person_id`)
      REFERENCES `festival_aid`.`persons` (`person_id`)
      ON DELETE CASCADE
      ON UPDATE NO ACTION)
  ENGINE = InnoDB;
  </code></pre>
  
  <p>Table Persons</p>
  
  <pre><code>CREATE TABLE IF NOT EXISTS `festival_aid`.`persons` (
    `person_id` BIGINT NOT NULL AUTO_INCREMENT,
    `person_firstname` VARCHAR(45) NULL,
    `person_surname` VARCHAR(45) NULL,
    `person_created` TIMESTAMP NOT NULL,
    `person_modified` TIMESTAMP NULL,
    `person_deleted` TIMESTAMP NULL,
    PRIMARY KEY (`person_id`))
  ENGINE = InnoDB;
  </code></pre>
  
  <p>Model Person</p>
  
  <pre><code>class Person extends Eloquent {
  
      protected $table = 'persons';
  
      protected $primaryKey = 'person_id';
  
      public function person()
      {
          return $this-&gt;belongsTo('User');
      }
  
      public $timestamps = false;
  }
  </code></pre>
  
  <p>The UserController with edit and update</p>
  
  <pre><code>public function edit($user_id, $person_id)
  {
      $user = User::find($user_id);
      $person = Person::find($person_id);
  
      return View::make('users.edit')
          -&gt;with('user', $user)
          -&gt;with('person', $person);
  }
  
  public function update($user_id, $person_id)
  {
      $rules = array(
          'person_firstname' =&gt; 'required',
          'person_lastname' =&gt; 'required',
          'user_username' =&gt; 'required|unique:users',
          'user_email' =&gt; 'required|unique:users|email',
      );
      $validator = Validator::make(Input::all(), $rules);
  
      if ($validator-&gt;fails()) {
          Redirect::to('users/' . $user_id . '/' . $person_id . '/edit')
              -&gt;withErrors($validator)
              -&gt;withInput(Input::except('user_password'));
      } else {
          $user = User::find($user_id);
          $person = Person::find($person_id);
  
          $person-&gt;person_firstname = Input::get('person_firstname');
          $person-&gt;person_lastname = Input::get('person_lastname');
          $user-&gt;user_username = Input::get('user_username');
          $user-&gt;user_email = Input::get('user_email');
  
          $user-&gt;save();
          $person-&gt;save();
  
          Session::flash('message', 'Successfully updated user!');
          return Redirect::to('users/index');
      }
  </code></pre>
  
  <p>View Edit</p>
  
  <pre><code>&lt;legend&gt;Edit {{ $person-&gt;person_firstname }}&lt;/legend&gt;
  
  {{ HTML::ul($errors-&gt;all()) }}
  
      {{ Form::model($user, $person, array('method' =&gt; 'PUT')) }}
  
      &lt;div class="form-group"&gt;
          {{ Form::label('firstname', 'Firstname') }}
          {{ Form::text('person_firstname', Input::old('firstname'), array('class'=&gt;'form-control', 'placeholder' =&gt; 'Firstname')) }}
      &lt;/div&gt;
  
      &lt;div class="form-group"&gt;
          {{ Form::label('surname', 'Surname') }}
          {{ Form::text('person_surname', Input::old('surname'), array('class'=&gt;'form-control', 'placeholder' =&gt; 'Surname')) }}
      &lt;/div&gt;
  
      &lt;div class="form-group"&gt;
          {{ Form::label('username', 'Username') }}
          {{ Form::text('user_username', Input::old('username'), array('class'=&gt;'form-control', 'placeholder' =&gt; 'Username')) }}
      &lt;/div&gt;
  
      &lt;div class="form-group"&gt;
          {{ Form::label('email', 'Email') }}
          {{ Form::text('user_email', Input::old('email'), array('class' =&gt; 'form-control')) }}
      &lt;/div&gt;
  
      &lt;div class="form-group"&gt;
          {{ Form::label('Password') }}
          {{ Form::password('user_password', array('class'=&gt;'form-control', 'placeholder' =&gt; 'Password')) }}
      &lt;/div&gt;
  
      {{ Form::submit('Edit the User!', array('class' =&gt; 'btn btn-primary')) }}
  
      {{ Form::close() }}
  </code></pre>
  
  <p>The Route</p>
  
  <pre><code>Route::get('/users/{user_id}/edit', 'UserController@edit');
  </code></pre>
  
  <p>What am I doing wrong?</p>