postsVisibleTo()
public method
Define the relationship with the discussion's posts, but only ones which
are visible to the given user.
public postsVisibleTo ( User $user ) : Illuminate\Database\Eloquent\Relations\HasMany |
$user |
User |
|
return |
Illuminate\Database\Eloquent\Relations\HasMany |
|