1
votes

first Add in composer.json

"illuminate/html": "5.*" and update composer

second

add under 'providers'

Illuminate\Html\HtmlServiceProvider::class, add under 'aliases'

'Form' => Illuminate\Html\FormFacade::class, 'Html' => Illuminate\Html\HtmlFacade::class,

but after i run my page it say Class 'HTML' not found what the problem

1
What version of laravel are you using?Rwd
i just install laravel lastest 5.2Danusorn
"require": { "php": ">=5.5.9", "laravel/framework": "5.2.*", "illuminate/html": "5.*" },Danusorn
Read laravel.com/docs/5.0/upgrade#upgrade-5.0 . Basically, both form and html helpers were removed in Laravel 5. Alexey's answer is what you're afterRwd

1 Answers

0
votes

You should install Laravel Collective HTML & Forms to make it work. Laravel developers removed this package from Laravel 5, so now you should install it manually.