public function markdownToArray($file)
    {

        $markdown = $this->markdown->transform(
            Storage::disk('markdown')
                ->get($file)
        );

        $array = explode("\n", $markdown);

        $data['url'] = $this->markdownLink($file, 'url');
        $data['last_modified'] = date(
            'Y-m-d',
            Storage::disk('markdown')->lastModified($file)
        );
        $posted =  Carbon::now()->parse($data['last_modified'])->diffForHumans();
        $data['time_ago'] = $posted;
        $data['link'] = $this->markdownLink($file);
        $data['title'] = $array[0];
        $data['excerpt'] = $array[2];
        $data['content'] = str_replace($data['title'], '', $markdown);

        return $data ;

    }