'Error when setting up the application in laravel 5
I am trying to composer update the command on my existing laravel5.8 project. For that I run the below command : "composer update".
Laravel get updated without any fail and after that I tried to clear the config and cache..but when I tried to do so I am getting the below error for every action
In Container.php line 788:
Class seed.handler does not exist
When I run the website locally , I get 500 error and apache logs say : PHP Fatal error: Uncaught ReflectionException: Class view does not exist in /var/www/html/pombackend/vendor/laravel/framework/src/Illuminate/Container/Container.php:788
I searched everywhere but did not get the fix for this. Can anybody help me with this ?
Solution 1:[1]
Put this in your composer.json file:
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true,
"allow-plugins": {
"composer/installers": true,
"dealerdirect/phpcodesniffer-composer-installer": true,
"roots/wordpress-core-installer": true
}
},
Hope so it will work.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Ethan |
