public function isBlocking($id): bool
    {
        if (is_array($id)) {
            return count($id) === $this->blockingUsers()->whereIn('blocked_by_id', $id)->count();
        }

        return $this->blockingUsers()->where('blocked_by_id', $id)->exists();
    }
public function isBlocking($id): bool
    {
        if (is_array($id)) {
            return count($id) === $this->blockingUsers()->whereIn('blocked_by_id', $id)->count();
        }

        return $this->blockingUsers()->where('blocked_by_id', $id)->exists();
    }
public function isBlocking ( $ id ) : bool { if ( is_array ( $ id ) ) { return count ( $ id ) === $ this -> blockingUsers ( ) -> whereIn ( 'blocked_by_id' , $ id ) -> count ( ) ; } return $ this -> blockingUsers ( ) -> where ( 'blocked_by_id' , $ id ) -> exists ( ) ; }
Check if it is blocking.

@param  array|int  $id
@return bool
Check if it is blocking .