I just started to learn PHP development and by the way a practiced hand project, is using Laravel and composer to build the development framework, because the need to use markdown parsing, so through
composer require erusev/parsedownInstalled a
parsedown。
It's normal when I'm app/Http/routes.php using it Parsedown , but I'm prompted when I'm app/Http/Controllers/MyController.php using it Class 'App\Http\Controllers\Parsedown' not found .
I checked, guess may be no autoload problem, but do not very familiar with composer, so want to ask what is wrong? How do I fix it?
Reply content:
I just started to learn PHP development and by the way a practiced hand project, is using Laravel and composer to build the development framework, because the need to use the markdown parsing, so through composer require erusev/parsedown the installation parsedown .
It's normal when I'm app/Http/routes.php using it Parsedown , but I'm prompted when I'm app/Http/Controllers/MyController.php using it Class 'App\Http\Controllers\Parsedown' not found .
I checked, guess may be no autoload problem, but do not very familiar with composer, so want to ask what is wrong? How do I fix it?
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.