title: Laravel Best Security for Saving New Instance with foreign key
body: <p>I'm tried to find a better security for saving new instance with foreign key.
  I've got 2 solutions with both give me the same result.</p>
  
  <p>First one is get the foreign key value directly from request input.</p>
  
  <pre><code>$post= new Post();
  $post-&gt;post = $request-&gt;post
      $post-&gt;article_id = $request-&gt;article_id;
      $post-&gt;user_id  = $request-&gt;user_id;
      $post-&gt;save();
  </code></pre>
  
  <p>Second one tried to find it first and using associate.</p>
  
  <pre><code>    $post= new Post(['post' =&gt; $request-&gt;post]);
      $post-&gt;article()-&gt;associate($request-&gt;article_id);
      $post-&gt;user()-&gt;associate($request-&gt;user_id);
      $post-&gt;save();
  </code></pre>
  
  <p>Well, second approach is longer than first one.
  Is there any drawback for using first one or second one such as security, performance, etc? </p>