Comment afficher tous les messages associés à l'utilisateur à Laravel
class User extends Eloquent {
public function posts() {
return $this->hasMany('Post');
}
}
// in order to show it you need to do that in your blade file
{{Auth::user()->posts}}
elsheikh