title: Insertion in a model where a relationship is one to many by only one model
body: <p>I want to insert in a relation where relation from inspection to inspection_details is one to many. Where one inspection may have multiple details. Problem is i have one model "Inspection". How do i insert or retrieve data from inspection_details table.</p>
  
  <p><a href="https://i.stack.imgur.com/vL7FC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vL7FC.png" alt="Table structure is this"></a></p>
  
  <p>Code of Inspection model have used </p>
  
  <pre><code> class Inspection extends Model
   {
      protected $fillable =[
         'schedule_id', 'inspector', 'comments', 'signature'
      ];
  
  
      public function details()
      {
         return $this-&gt;belongsToMany('App\Inspection', 'inspection_details');
      }
   }
  </code></pre>
  
  <p>But i am not able to insert or retrieve record of details table.</p>
  
  <p>Code i have used with tinker:</p>
  
  <pre><code> $ins = App\Inspection::find(1)
   $ins-&gt;details
  </code></pre>
  
  <p>I am getting instances of details, but i don't know how to insert data in inspection_details table.</p>