laravel5.2, registration of a service provider is not valid

Source: Internet
Author: User

The Laravel Registry service provider was originally very simple, just run the next instruction PHP artisan Make:provider testserviceprovider, and then register it in config/app.php providers array.

But sometimes, you find that it does, but it still fails!!!??

-------------------Lovely dividing line-the great turning point begins here-----------------------------

See if there are any config.php under the Bootstrap/cache directory. Omg! Really, that's right, because you turned on configure caching

Workaround:

1. Close Config cache: Run the next instruction PHP artisan config:clear

2. Rebuild under Configure cache: Run command PHP Artisan Config:cache

laravel5.2, registration of a service provider is not valid

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.