Problems in Laravel52

Source: Internet
Author: User
: This article mainly introduces problems in Laravel52. if you are interested in the PHP Tutorial, refer to it. Problems in Laravel5.2

When we use a form in 5.1, we usually need to download a package called illuminate/html first, and then the app in config. after configuration is introduced in php, you can use the corresponding components.

Error

But what happens in laravel5.2?

Fatal error: Call to undefined methodIlluminate\Foundation\Application::bindShared() 

This bindShared () error will occur. of course, we only need to delete the illuminate/html package to solve this problem!
(How do you implement extension without using a tm package !!)

So there is a package named laravel collective.

  • First, delete the original package: delete the Illuminate \ Html \ HtmlServiceProvider under the provider in app. php, and delete all related items under the aliases.

  • Run composer update on the command line to make sure that illuminate/html has been deleted.

  • Composer require laravelcollective/html

  • After the download is complete, add Collective \ Html \ HtmlServiceProvider: class to config \ app. php and respond to adding aliases.

Ps:

If the composer speed is too slow or there is no available vpn, you can use a full Chinese image [source image] (http://pkg.phpcomposer.com/) by vampirebitter

'). AddClass ('pre-numbering '). hide (); $ (this ). addClass ('Has-numbering '). parent (). append ($ numbering); for (I = 1; I <= lines; I ++) {$ numbering. append ($ ('
  • '). Text (I) ;}; $ numbering. fadeIn (1700) ;}) ;}; script

    The above describes the problems in Laravel52, including some content. I hope my friends who are interested in the PHP Tutorial can help me.

    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.