title: How to check if user has a record in other table with laravel eloquent?
body: <p>I have three tables.</p>
  
  <pre><code>Users: id|name
  
  Questions: id|name
  
  Answers: id|user_id|question_id
  </code></pre>
  
  <p>Now i want to check if logged in user has answered any question or not.
  This is my query in controller.</p>
  
  <pre><code>  Question::orderBy('id','desc')-&gt;get();
    Answer::whereUserId(Auth:id()-&gt;get();
  </code></pre>
  
  <p>Now how can i match it in view ?</p>