common/repositories/ContactUsRepository.php
/**
    * Create a new Support Message data with Parent
    * @return boolean
    */
Create a new Support Message data with Parent
@return boolean
Create a new Support Message data with Parent @return boolean
private function createNewReplySupportMessage($data){
        if(null != $data){
            $this->contact_us_messages->receiver_id = $data['receiver_id'];
            $this->contact_us_messages->parent_id = $data['id'];
            $this->contact_us_messages->sender_id = $data['sender_id'];
            $this->contact_us_messages->email = $data['email'];
            $this->contact_us_messages->subject = $data['subject'];
            $this->contact_us_messages->message = $data['message'];
            return $this->contact_us_messages->save();
        }
        throw new RuntimeException("Message does not created");
    }
private function createNewReplySupportMessage ( $ data ) { if ( null != $ data ) { $ this -> contact_us_messages -> receiver_id = $ data [ 'receiver_id' ] ; $ this -> contact_us_messages -> parent_id = $ data [ 'id' ] ; $ this -> contact_us_messages -> sender_id = $ data [ 'sender_id' ] ; $ this -> contact_us_messages -> email = $ data [ 'email' ] ; $ this -> contact_us_messages -> subject = $ data [ 'subject' ] ; $ this -> contact_us_messages -> message = $ data [ 'message' ] ; return $ this -> contact_us_messages -> save ( ) ; } throw new RuntimeException ( " Message does not created " ) ; }
Create a new Support Message data with Parent
 @return boolean
Create a new Support Message data with Parent @return boolean