protected function outputToCollection(string $output)
    {
        if ($this->target->resource->jsonResult) {
            return collect(json_decode($output, true) ?? collect([]));
        }

        return $output;
    }
protected function outputToCollection(string $output)
    {
        if ($this->target->resource->jsonResult) {
            return collect(json_decode($output, true) ?? collect([]));
        }

        return $output;
    }
protected function outputToCollection ( string $ output ) { if ( $ this -> target -> resource -> jsonResult ) { return collect ( json_decode ( $ output , true ) ?? collect ( [ ] ) ) ; } return $ output ; }
Convert output to array.

@param string $output
@return \Illuminate\Support\Collection|mixed
Convert output to array .