I just started learning PHP development and started a hands-on program. I am using Laravel and composer to build a development framework. Because I need to use Markdown parsing, I have installed parsedown through composerrequireerusevparsedown. When I am in appHttproutes. in php... I just started learning PHP development and started a hands-on program. I am using Laravel and composer to build a development framework. Because I need to use Markdown parsing
composer require erusev/parsedownInstalled
parsedown.
When Iapp/Http/routes.phpUsed inParsedownIt is normal, but when Iapp/Http/Controllers/MyController.phpPrompt when usingClass 'App\Http\Controllers\Parsedown' not found.
I checked it. I guess there may be no autoload problem, but I am really not familiar with composer. So I want to ask where is the problem? How can this problem be solved?
Reply content:
I just started learning PHP development and started a hands-on program. I am using Laravel and composer to build a development framework. Because I need to use Markdown parsingcomposer require erusev/parsedownInstalledparsedown.
When Iapp/Http/routes.phpUsed inParsedownIt is normal, but when Iapp/Http/Controllers/MyController.phpPrompt when usingClass 'App\Http\Controllers\Parsedown' not found.
I checked it. I guess there may be no autoload problem, but I am really not familiar with composer. So I want to ask where is the problem? How can this problem be solved?
Is it missing?
use parsedown;