src/Post/Post.php
public function isVisibleTo(User $user)
    {
        return (bool) $this->newQuery()->whereVisibleTo($user)->find($this->id);
    }
public function isVisibleTo(User $user)
    {
        return (bool) $this->newQuery()->whereVisibleTo($user)->find($this->id);
    }
public function isVisibleTo ( User $ user ) { return ( bool ) $ this -> newQuery ( ) -> whereVisibleTo ( $ user ) -> find ( $ this -> id ) ; }
Determine whether or not this post is visible to the given user.

@param User $user
@return bool
Determine whether or not this post is visible to the given user .