public function insert(array $collection)
    {
        foreach ($collection as $key => $inputs) {
            $collection[$key] = $this->purifyInputs($inputs);
        }

        return $this->model->insert($collection);
    }
public function insert(array $collection)
    {
        foreach ($collection as $key => $inputs) {
            $collection[$key] = $this->purifyInputs($inputs);
        }

        return $this->model->insert($collection);
    }
public function insert ( array $ collection ) { foreach ( $ collection as $ key => $ inputs ) { $ collection [ $ key ] = $ this -> purifyInputs ( $ inputs ) ; } return $ this -> model -> insert ( $ collection ) ; }
Create a collection of new records.

@param array $collection

@return mixed
Create a collection of new records .