protected function fillableFromArray(array $attributes)
    {
        if (count($this->getFillable()) > 0) {
            return array_intersect_key($attributes, array_flip(
                array_merge(['fileName'], $this->getFillable())
            ));
        }

        return $attributes;
    }
protected function fillableFromArray(array $attributes)
    {
        if (count($this->getFillable()) > 0) {
            return array_intersect_key($attributes, array_flip(
                array_merge(['fileName'], $this->getFillable())
            ));
        }

        return $attributes;
    }
protected function fillableFromArray ( array $ attributes ) { if ( count ( $ this -> getFillable ( ) ) > 0 ) { return array_intersect_key ( $ attributes , array_flip ( array_merge ( [ 'fileName' ] , $ this -> getFillable ( ) ) ) ) ; } return $ attributes ; }
Get the fillable attributes of a given array.

@param  array $attributes

@return array
Get the fillable attributes of a given array .