protected function parseOptions($options)
    {
        return collect(explode(';', $options))->mapWithKeys(function ($option) {
            $data = explode('=', $option, 2);

            return [$data[0] => $data[1] ?? true];
        })->all();
    }
protected function parseOptions($options)
    {
        return collect(explode(';', $options))->mapWithKeys(function ($option) {
            $data = explode('=', $option, 2);

            return [$data[0] => $data[1] ?? true];
        })->all();
    }
protected function parseOptions ( $ options ) { return collect ( explode ( ';' , $ options ) ) -> mapWithKeys ( function ( $ option ) { $ data = explode ( '=' , $ option , 2 ) ; return [ $ data [ 0 ] => $ data [ 1 ] ?? true ] ; } ) -> all ( ) ; }
Parse the given header options.

@param  string  $options
@return array
Parse the given header options .