In cmd run command:
composer require laravelcollective/html
In your composer.json file in "require" group should be added this line:
"laravelcollective/html": "5.2.*"
Update composer with command:
composer update
In config/app.php add this lines:
in providers group:
Collective\Html\HtmlServiceProvider::class,
in aliases group:
'Form' => Collective\Html\FormFacade::class,
'Html' => Collective\Html\HtmlFacade::class,
mirbatworks said:
Illuminate/HTML package has been deprecated
Do this:
Thank you so much for this info. Just in time to fix it.
mirbatworks said:
Illuminate/HTML package has been deprecated
Do this:
I'm using Laravel v5.2 and have followed mirbatworks instructions (3x), but it is throwing errors:
Browser: FatalErrorException in ProviderRepository.php line 119: Call to undefined method Collective\Html\FormFacade::isDeferred()
Artisan: [Symfony\Component\Debug\Exception\FatalErrorException] Call to undefined method Collective\Html\FormFacade::isDeferred()
Also tried 5.2.*-dev, but get the same errors.
What have I missed? Help!
Unless something just broke in the last day, just follow the instructions on the package's website. No need for any 3rd party tutorials. Always go to the package's github or website first.
and Illuminate\Html has been deprecated for a long time.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community