According to the previous method, the composer creates a package called illuminate/HTML. It is found that it cannot be used during use, and an error will be thrown when the composer updates
[Symfony\Component\Debug\Exception\FatalErrorException]
Call to undefined method Illuminate\Foundation\Application::bindShared()
reason:
I found out online that it is not supported after 5.1, so I removed illuminate/html from config/app.php
In providers
'Illuminate\Html\HtmlServiceProvider'
In aliases
'Form' => 'Illuminate\Html\FormFacade',
'HTML' => 'Illuminate\Html\HtmlFacade
Reexecution
composer remove illuminate/html
composer update
After 5.1, it is replaced with the package of laravelcollective/HTML.
composer require laravelcollective/html
In/config/app.php Add the following sentence to the providers array of
Collective\Html\HtmlServiceProvider::class,
In/config/app.php Add the following two sentences to the aliases array of
'Form'=>Collective\Html\FormFacade::class,
'Html'=>Collective\Html\HtmlFacade::class,
Read More:
- Clion new method shows undefined reference to solution
- [Solved] cocopod Error: failed: undefined method `map‘ for nil:NilClass
- [Solved] Searching for inspections failed: undefined method `map‘ for nil:NilClass“
- Spark-shell startup error: Yarn application has already ended! It might have been killed or unable to launch application master
- [Solved] Use the truss console to connect to the public blockchain network error: mnemonic invalid or undefined
- How to Solve Application failed to start error
- Error starting ApplicationContext. To display the auto-configuration report re-run your application
- How to Fix msgsend() error: to many arguments to function call, expected 0, have2
- C++ Primer Program in VsCode error: no match for call to ‘(std::__cxx11::string…)
- [Solved] Springboot project Create to start Error: APPLICATION FAILED TO START
- [Solved] Failed to apply plugin ‘com.android.internal.application‘.
- [Solved] Opencv Call yolov3 Error: IndexError: invalid index to scalar variable
- How to Fix Spoolsv.exe Application Error
- [Solved] Failed to load property source from location ‘classpath:/application.yml‘
- [Solved] C++ error: undefined reference to `xxx‘
- How to Solve skimage.metrics.compare_psnr Method Error
- [Solved] Synchronous operations are disallowed. Call ReadAsync or set AllowSynchronousIO to true instead.
- [Solved] Cannot read properties of undefined (reading ‘ajax‘); Cannot read property ‘ajax‘ of undefined
- [Solved] Failed to invoke @ExceptionHandler method is reported after adding @ControllerAdvice
- [Solved] Qt Error: undefined reference to xxxxx