: 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.