protected function mergeOptions($options)
    {
        $options = array_merge(config('mediasort', []), (array)$options);
        $options['styles'] = array_merge((array)$options['styles'], ['original' => '']);

        return $options;
    }
protected function mergeOptions($options)
    {
        $options = array_merge(config('mediasort', []), (array)$options);
        $options['styles'] = array_merge((array)$options['styles'], ['original' => '']);

        return $options;
    }
protected function mergeOptions ( $ options ) { $ options = array_merge ( config ( 'mediasort' , [ ] ) , ( array ) $ options ) ; $ options [ 'styles' ] = array_merge ( ( array ) $ options [ 'styles' ] , [ 'original' => '' ] ) ; return $ options ; }
Merge configuration options.

Here we'll merge user defined options with the MediaSort defaults in a cascading manner.
We start with overall MediaSort options.  Next we merge in storage driver specific options.
Finally we'll merge in media specific options on top of that.

@param array $options

@return array
Merge configuration options .