public function makeSeen($messageId)
    {
        $seen = $this->message->update($messageId, ['is_seen' => 1]);
        if ($seen) {
            return true;
        }

        return false;
    }
public function makeSeen($messageId)
    {
        $seen = $this->message->update($messageId, ['is_seen' => 1]);
        if ($seen) {
            return true;
        }

        return false;
    }
public function makeSeen ( $ messageId ) { $ seen = $ this -> message -> update ( $ messageId , [ 'is_seen' => 1 ] ) ; if ( $ seen ) { return true ; } return false ; }
make a message as seen.

@param int $messageId

@return bool
make a message as seen .