Use composer to install Parsedown and prompt for Parsedown not found when used in Laravel

Source: Internet
Author: User
Keywords Php composer laravel
Tags autoload
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?

Is it missing?

use parsedown;
  • Related Article

    Contact Us

    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.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.