1

I am new to Laravel and using Laravel 5.1.

FatalErrorException in 88e08cd08566357f572303974c44bc50 line 4: Class 'Form' not found.

For the above exception I did some changes in my project:

. "require": { 
"php": ">=5.5.9",
 "laravel/framework": "5.1.",
 "laravelcollective/html": "5.1."
 },

Added in JSON and updated the JSON file.

In config/app.php:

'providers' => [ // ... Collective\Html\HtmlServiceProvider::class, // ... ], 

In config/app.php:

'aliases' => [ // ... 'Form' => Collective\Html\FormFacade::class, 'Html' => Collective\Html\HtmlFacade::class, // ... ], 

I have added this aliases, but it's still showing the above error. Please can anyone help me?

2
  • Try running composer dump-autload in the console on the root of your application. This will reload the autoload to include the classes. Also, can you show us the code in that specific view? Commented Aug 11, 2015 at 9:55
  • Did you install it after adding it to your composer.json? You have to run composer update to install it. Commented Aug 11, 2015 at 12:40

1 Answer 1

1

just you have to autoload your composer file.Reason is you added new class to required array in composer.

composer dump-autoload

Source and help for composer

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.