title: Add an array of ids to other table in Laravel
body: <p>I have two tables stories and featured Story so I want to add the few story ids to featured table in a single request. How to do that?</p>
  
  <p>here is my code to add the single id to featured story table.</p>
  
  <pre><code>public function saveFeatured($id)
      {
          # code...
          $story = $this-&gt;getById($id);
          $storyId = $story-&gt;id;
          $featured = new FeaturedStory();
          $featured-&gt;story_id = $storyId;
          $featured-&gt;save();
          return "Added to featured StoryList";
      }
  </code></pre>