title: Is it possible to save one to many relation in one line Laravel eloquent
body: <p>How can I save this question answer relation ship model in one line using Laravel Eloquent. If this is not possible then how to save this relation efficiently (using less line of code,purely using Eloquent ORM.)</p>
  
  <p><strong>This is question model</strong></p>
  
  <pre><code>class Question extends Model
  {
      protected $fillable = ['name' ,'type'];
  
      public $timestamps = true;
  
      public function answers(){
  
          return $this-&gt;hasMany('App\Answer');
      }
  }
  </code></pre>
  
  <p><strong>This is answer model</strong></p>
  
  <pre><code>class Answer extends Model
  {
      protected $fillable = ['answer'];
  
      public $timestamps = true;
  
  
      public function question(){
  
          return $this-&gt;belongsTo('App\Question');
      }
  }  
  </code></pre>