Call to undefined method Illuminate \ Foundation \ Application ::bindShared()
To Fix this remove the outdated package
Đối vớ laravel 5.4
Step 2: Update composer.json with
Step 4: Register new providers and aliases on
"illuminate/html": "^5.0" and replace with new Laravel collective package as shown belowĐối vớ laravel 5.4
"laravelcollective/html": "5.3.*"
Step 1: Remove "illuminate/html": "^5.0" from composer JSON
- //Remove from composer.json
- "illuminate/html": "^5.0",
- //Remove service providerfrom config/app
- 'Illuminate\Html\HtmlServiceProvider'
- //Remove aliases from config/app
- 'Form'=> 'Illuminate\Html\FormFacade',
- 'HTML'=> 'Illuminate\Html\HtmlFacade',
Step 2: Update composer.json with "laravelcollective/html": "5.2.*"
- {
- "name": "laravel/laravel",
- "description": "The Laravel Framework.",
- "keywords": ["framework", "laravel"],
- "license": "MIT",
- "type": "project",
- "require": {
- "php": ">=5.5.9",
- "laravel/framework": "5.2.*",
- "laravelcollective/html": "5.2.*"
- },
- }
Step 3: Update composer
- composer update
Step 4: Register new providers and aliases on config/app.php
http://www.phplab.info/categories/laravel/call-to-undefined-method-illuminate-foundation-application-bindshared
- //Provider
- Collective\Html\HtmlServiceProvider::class
- //Aliases
- 'Form' => Collective\Html\FormFacade::class,
- 'Html' => Collective\Html\HtmlFacade::class,
No comments:
Post a Comment