Jak wyświetlać wszystkie posty kojarzone użytkownikowi w 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