thephpleague / html-to-markdown

Convert HTML to Markdown with PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

html-to-markdown Not Working

Timmy5818 opened this issue · comments

I installed html-to-markdown using the instructions you provided
, but my Laravel project will have this error, I want to ask if you mean to put the data in the src folder in your GitHub into the Laravel project and use it?
Because the way I currently do it won't work.

Below is a picture of my error:
image

Code:
image

You're importing from the wrong namespace.

use League\HTMLToMarkdown\HtmlConverter;

And not

use App\Models\League\HTMLToMarkdown\HtmlConverter;