src/Services/Saver.php
protected function cleanData()
    {
        $this->data = array_except($this->data, [
            '_token',
            'save',
            'save_create',
            'save_return',
            $this->repository->getKeyName(),
        ]);

        // leave only fillable columns
        $this->data = array_only($this->data, $this->repository->getFillable());
    }
protected function cleanData()
    {
        $this->data = array_except($this->data, [
            '_token',
            'save',
            'save_create',
            'save_return',
            $this->repository->getKeyName(),
        ]);

        // leave only fillable columns
        $this->data = array_only($this->data, $this->repository->getFillable());
    }
protected function cleanData ( ) { $ this -> data = array_except ( $ this -> data , [ '_token' , 'save' , 'save_create' , 'save_return' , $ this -> repository -> getKeyName ( ) , ] ) ; // leave only fillable columns $ this -> data = array_only ( $ this -> data , $ this -> repository -> getFillable ( ) ) ; }
Protect request data against external data.
Protect request data against external data .