public function markAsRead($userId)
    {
        try {
            $participant = $this->getParticipantFromUser($userId);
            $participant->last_read = new Carbon;
            $participant->save();
        } catch (ModelNotFoundException $e) {
            // do nothing
        }
    }
public function markAsRead($userId)
    {
        try {
            $participant = $this->getParticipantFromUser($userId);
            $participant->last_read = new Carbon;
            $participant->save();
        } catch (ModelNotFoundException $e) {
            // do nothing
        }
    }
public function markAsRead ( $ userId ) { try { $ participant = $ this -> getParticipantFromUser ( $ userId ) ; $ participant -> last_read = new Carbon ; $ participant -> save ( ) ; } catch ( ModelNotFoundException $ e ) { // do nothing } }
Mark a thread as read for a user

@param integer $userId
Mark a thread as read for a user