private function filter(&$options)
    {
        foreach ($options as $key => $value) {
            if (!in_array($key, $this->fillable)) {
                unset($options[$key]);
            }
        }
    }
private function filter(&$options)
    {
        foreach ($options as $key => $value) {
            if (!in_array($key, $this->fillable)) {
                unset($options[$key]);
            }
        }
    }
private function filter ( & $ options ) { foreach ( $ options as $ key => $ value ) { if ( ! in_array ( $ key , $ this -> fillable ) ) { unset ( $ options [ $ key ] ) ; } } }
Filters out options that are not included in a model's fillable array.

@param array &$options - Options array reference

@return void
Filters out options that are not included in a model s fillable array .