title: What is the best way to update One to One Polymorphic in Laravel?
body: <p>I have One to One Polymorphic, I want to figure the best way to update existed relationships.</p>
  
  <pre><code>class Image extends Model
  {
      /**
       * Get the owning imageable model.
       */
      public function imageable()
      {
          return $this-&gt;morphTo();
      }
  }
  
  class Post extends Model
  {
      /**
       * Get the post's image.
       */
      public function image()
      {
          return $this-&gt;morphOne('App\Image', 'imageable');
      }
  }
  
  class User extends Model
  {
      /**
       * Get the user's image.
       */
      public function image()
      {
          return $this-&gt;morphOne('App\Image', 'imageable');
      }
  }
  </code></pre>
  
  <p>On Update Method in PostController</p>
  
  <pre><code>public function update(Request $request, $id)
  {
      $post       = Post::findOrFail($id);
      $post-&gt;image()-&gt;delete();
      $post-&gt;image()-&gt;save(new Image([
          'url'=&gt; $request-&gt;input('image_url),
      ]));
  }
  </code></pre>
  
  <blockquote>
    <p>How to update Image Relationship without deleting it first?</p>
  </blockquote>
  
  <p>Thanks</p>