thephpleague / html-to-markdown

Convert HTML to Markdown with PHP
MIT License
1.77k stars 204 forks source link

html-to-markdown Not Working #224

Closed Timmy5818 closed 2 years ago

Timmy5818 commented 2 years ago

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

thinkverse commented 2 years ago

You're importing from the wrong namespace.

use League\HTMLToMarkdown\HtmlConverter;

And not

use App\Models\League\HTMLToMarkdown\HtmlConverter;