common/repositories/ContactUsRepository.php
/**
    * @return contact form specific message from storage.
    */
@return contact form specific message from storage.
@return contact form specific message from storage .
public function showMessageById($id){
        return $this->contact_us_messages->find()
            ->where(['id'=>$id])
            ->orWhere(['parent_id' => $id])
            ->all();
    }
public function showMessageById ( $ id ) { return $ this -> contact_us_messages -> find ( ) -> where ( [ 'id' => $ id ] ) -> orWhere ( [ 'parent_id' => $ id ] ) -> all ( ) ; }
@return contact form specific message from storage.
@return contact form specific message from storage .