public function prepareList_emailDataForInsert($input) {

        $data = [];

        $data['title']         = $input['listID']." ".$input['emailID'];
        $data['list_id']       = $input['listID'];
        $data['email_id']      = $input['emailID'];
        $data['comments']      = "";
        $data['enabled']       = 1;
        $data['created_at']    = Carbon::now();
        $data['created_by']    = $this->userRepository->getFirstAmongEqualsUserID();
        $data['updated_at']    = Carbon::now();
        $data['updated_by']    = $this->userRepository->getFirstAmongEqualsUserID();

        return $data;

    }
public function prepareList_emailDataForInsert($input) {

        $data = [];

        $data['title']         = $input['listID']." ".$input['emailID'];
        $data['list_id']       = $input['listID'];
        $data['email_id']      = $input['emailID'];
        $data['comments']      = "";
        $data['enabled']       = 1;
        $data['created_at']    = Carbon::now();
        $data['created_by']    = $this->userRepository->getFirstAmongEqualsUserID();
        $data['updated_at']    = Carbon::now();
        $data['updated_by']    = $this->userRepository->getFirstAmongEqualsUserID();

        return $data;

    }
public function prepareList_emailDataForInsert ( $ input ) { $ data = [ ] ; $ data [ 'title' ] = $ input [ 'listID' ] . " " . $ input [ 'emailID' ] ; $ data [ 'list_id' ] = $ input [ 'listID' ] ; $ data [ 'email_id' ] = $ input [ 'emailID' ] ; $ data [ 'comments' ] = "" ; $ data [ 'enabled' ] = 1 ; $ data [ 'created_at' ] = Carbon :: now ( ) ; $ data [ 'created_by' ] = $ this -> userRepository -> getFirstAmongEqualsUserID ( ) ; $ data [ 'updated_at' ] = Carbon :: now ( ) ; $ data [ 'updated_by' ] = $ this -> userRepository -> getFirstAmongEqualsUserID ( ) ; return $ data ; }
Prepare the data for creating a new record in the "list_email" db table

@param   array   $input      POST and processed vars merged into one array
@return  array
Prepare the data for creating a new record in the list_email db table