public function washCreateForm() {

        // An array to hold the fields we'll neeed to INSERT the record
        $data = [];

        // Wash the input fields
        $data['to_email_address'] = trim($this->request->input('to_email_address'));
        $data['to_name']          = $this->genericWashText($this->request->input('to_name'));
        $data['subject']          = $this->genericWashText($this->request->input('subject'));
        $data['body']             = $this->genericWashText($this->request->input('body'));

        return $data;
    }
public function washCreateForm() {

        // An array to hold the fields we'll neeed to INSERT the record
        $data = [];

        // Wash the input fields
        $data['to_email_address'] = trim($this->request->input('to_email_address'));
        $data['to_name']          = $this->genericWashText($this->request->input('to_name'));
        $data['subject']          = $this->genericWashText($this->request->input('subject'));
        $data['body']             = $this->genericWashText($this->request->input('body'));

        return $data;
    }
public function washCreateForm ( ) { // An array to hold the fields we'll neeed to INSERT the record $ data = [ ] ; // Wash the input fields $ data [ 'to_email_address' ] = trim ( $ this -> request -> input ( 'to_email_address' ) ) ; $ data [ 'to_name' ] = $ this -> genericWashText ( $ this -> request -> input ( 'to_name' ) ) ; $ data [ 'subject' ] = $ this -> genericWashText ( $ this -> request -> input ( 'subject' ) ) ; $ data [ 'body' ] = $ this -> genericWashText ( $ this -> request -> input ( 'body' ) ) ; return $ data ; }
Wash the create form's input fields

@return array
Wash the create form s input fields