src/Database/Models/Traits/HasDefaultAttributes.php
/**
     * Get the fillable attributes of a given array. Don't store the defaults.
     *
     * @param  array $attributes
     *
     * @return array
     */
Get the fillable attributes of a given array. Don't store the defaults.
@param  array $attributes

@return array
Get the fillable attributes of a given array . Don ' t store the defaults . @param array $attributes @return array
protected function fillableFromArray(array $attributes)
    {
        if (! empty($attributes) && property_exists($this, 'defaults')) {
            $attributes = array_diff_assoc($attributes, $this->defaults);
        }
        return parent::fillableFromArray($attributes);
    }
protected function fillableFromArray ( array $ attributes ) { if ( ! empty ( $ attributes ) && property_exists ( $ this , 'defaults' ) ) { $ attributes = array_diff_assoc ( $ attributes , $ this -> defaults ) ; } return parent :: fillableFromArray ( $ attributes ) ; }
Get the fillable attributes of a given array.
Get the fillable attributes of a given array .