title: Laravel relation table user and address
body: <p>I'm confronted to a little problem, I try to retrieve my data of table address relation with user.</p>
  
  <p>In my DB addresses I have a foreign key user_id associated to users table ID.</p>
  
  <p>My models User</p>
  
  <pre><code>public function addresses()
  {
      return $this-&gt;belongsToMany('Address');
  }
  </code></pre>
  
  <p>My model Addresse</p>
  
  <pre><code>public function user(){
      return $this-&gt;hasOne('User');
  }
  </code></pre>
  
  <p>I try to retrieve in my UsersController I try to show in my profile method the address of user
  Controller Users</p>
  
  <pre><code> public function profile($id){
      if($id != Auth::user()-&gt;id){
          return Redirect::to('logout');
      }
      $user=User::find(Auth::user()-&gt;id);
      $address = $user-&gt;addresse;
      dd($address);
      $comments = Comment::where('user_id','=',Auth::user()-&gt;id)
          -&gt;take(10)-&gt;get();
  
      return View::make('users.profile')
          -&gt;with(array('comments'=&gt;$comments,'address'=&gt;$address));
  }
  </code></pre>
  
  <p>But in my view I cannot retrieve the data of my relation user address.</p>
  
  <p>profile.blade.php view</p>