I\'m trying to render a text input field in my view file. I keep getting this error: \"Class \'form\' not found in view-file.blade.php\"
Template:
Install laravelcollective/html
composer require "laravelcollective/html":"^5.5"
Update Composer
composer update
Add Provider and Static Facade in config/app.php
<?php
'providers' => [
Collective\Html\HtmlServiceProvider::class,
],
'aliases' => [
'Form' => Collective\Html\FormFacade::class,
'Html' => Collective\Html\HtmlFacade::class,
],
This may be due to adding it into config/app before Composer was done installing it.
Try using php artisan config:cache