Laravel 5 Class ‘form’ not found

Form isn’t included in laravel 5.0 as it was on 4.0, steps to include it: Begin by installing laravelcollective/html package through Composer. Edit your project’s composer.json file to require: “require”: { “laravelcollective/html”: “~5.0” } Next, update composer from the Terminal: composer update Next, add your new provider to the providers array of config/app.php: ‘providers’ => … Read more

Composer Update failed — out of memory

Check the Composer’s troubleshooting wiki, especially the memory limit errors section. For instance, by running the composer like this: php -d memory_limit=-1 `which composer` update I get no error anymore. So it is probably an insufficient memory issue that can be solved inline, without altering your default PHP configuration. What the command above does is … Read more

Composer: required packages with differing levels of minimum-stability

The answer is just add @dev { “require”: { “cartalyst/sentry”: “2.0.*@dev” }, } You can read more about minimum stability settings here. An alternative is to set your minimum-stability to dev, but tell composer you want to use stable whenever possible: “minimum-stability”: “dev”, “prefer-stable” : true This basically means it will always use stable UNLESS … Read more

Remove composer

During the installation you got a message Composer successfully installed to: … this indicates where Composer was installed. But you might also search for the file composer.phar on your system. Then simply: Delete the file composer.phar. Delete the Cache Folder: Linux: /home/<user>/.composer Windows: C:\Users\<username>\AppData\Roaming\Composer That’s it.

Fatal error: Class ‘Illuminate\Foundation\Application’ not found

In my situation, I didn’t have the full vendor dependencies in place (composer file was messed up during original install) – so running any artisan commands caused a failure. I was able to use the –no-scripts flag to prevent artisan from executing before it was included. Once my dependencies were in place, everything worked as … Read more