- Class 'Form' not found
- FatalErrorException Call to undefined function link_to()
Step 1. Add Dependency in composer.json
Go to your composer.json file of project and add following dependency inside require section."laravelcollective/html":"^5.4.0"
Go yo your terminal and run composer update or composer update laravelcollective/html (To download the specific package).
Step 2 Add the Form and HTML facades and service provider.
Edit file app/config/app.php and add this line to providers arrayCollective\Html\HtmlServiceProvider::class
Add the following aliases to aliases array in the same file.
'Form' => Collective\Html\FormFacade::class,
'Html' => Collective\Html\HtmlFacade::class,