title: Eloquent Queries and Blade Display
body: <p>I have my users table and a profile table with a user_id</p>
  <p>in my <code>User</code> Model I have</p>
  <pre class="lang-php prettyprint-override"><code>public function profiles()
  {
      return $this-&gt;belongsTo('App\Models\Profile');
  }
  </code></pre>
  <p>and the reverse in my <code>Profile</code> Model.</p>
  <p>For my function to display on profile page I have</p>
  <pre class="lang-php prettyprint-override"><code>$profiles = Profile::get()
      -&gt;where('users', 'user_id', '=', 'profile.user_id');
  
  return view('profile.profile')-&gt;with('profiles', $profile');
  </code></pre>
  <p>but I am not sure this is correct.  Trying to stay eloquent.  I also don't understand how to display the info from users and profile table on my profile page.  Can someone please help?</p>