title: Laravel form binding with one to one relationships
body: <p>I have an Account model that has a polymorphic relation to an Address model. This is set up as a one-to-one releationship set up like so:</p>
  
  <p>Account:</p>
  
  <pre><code>public function address()
  {
      return $this-&gt;morphOne('Address', 'hasAddress', 'add_hasaddress_type', 'add_hasaddress_id', 'act_id');
  }
  </code></pre>
  
  <p>Address:</p>
  
  <pre><code>public function hasAddress()
  {
      return $this-&gt;morphTo('hasAddress', 'add_hasaddress_type', 'add_hasaddress_id');
  }
  </code></pre>
  
  <p>On my form to edit the account, I also have the address fields. I can bind my account object simply enough by doing:</p>
  
  <pre><code>{{ Form::model($account, array('route' =&gt; array('accounts/edit', $account-&gt;act_id), 'method' =&gt; 'put')) }}
      {{ Form::label('act_name', 'Account Name:') }}
      {{ Form::text('act_name', Input::old('act_name')) }}
  </code></pre>
  
  <p>and that fills in the fields properly. But, how do I populate the address fields? From what I researched, I need to do:</p>
  
  <pre><code>{{ Form::text('address.add_city', Input::old('address.add_city')) }}
  </code></pre>
  
  <p>To access the relation's values, but this doesn't work. </p>
  
  <p>I also tried</p>
  
  <pre><code>{{ Form::text('address[add_city]', Input::old('address[add_city]')) }}
  </code></pre>
  
  <p>as suggested by a SO with a similar title. Both of these I tried with and without the old input. Does this just not work with poymorphic relations or am I doing something wrong?</p>
  
  <p>Also, how do you handle these forms in the controller?</p>
  
  <p>Nothing about relations is in the form model binding documentation, and doing a search mainly brings up people asking for one-to-many binding.</p>