title: Laravel trying to get user id to store into posts table
body: <pre><code>public function store(Request $request)
  {
     $this-&gt;validate($request, array(
         'title' =&gt; 'required|max:255|min:2',
         'slug' =&gt; 'required|alpha_dash|unique:articles,slug',
         'category_id' =&gt; 'required|integer',
         'content' =&gt; 'required|min:2'
     ));
  
     $article = new Article;
     $article-&gt;title = $request-&gt;title;
     $article-&gt;slug = $request-&gt;slug;
     $article-&gt;category_id = $request-&gt;category_id;
  
     $article-&gt;content = $request-&gt;content;
     $article-&gt;save();
  
     Session::flash('success', 'Your article has been published.');
     return redirect()-&gt;route('article.show', $article-&gt;id);
  }
  </code></pre>
  
  <p>There is a user_id column on the articles table, </p>
  
  <p>This is my store function but when I create the post I am looking for a way to store the logged in user id to the user_id column in the articles table.</p>