CentOS Laravel project reported an error

an error will be reported when a new project is run on centos git pull using composer install and update. What is the problem?

Fatal error: Uncaught ReflectionException: Class config does not exist in /home/www/station/vendor/laravel/framework/src/Illuminate/Container/Container.php:767 Stack trace: -sharp0 /home/www/station/vendor/laravel/framework/src/Illuminate/Container/Container.php(767): ReflectionClass->__construct("config") -sharp1 /home/www/station/vendor/laravel/framework/src/Illuminate/Container/Container.php(646): Illuminate\Container\Container->build("config") -sharp2 /home/www/station/vendor/laravel/framework/src/Illuminate/Container/Container.php(601): Illuminate\Container\Container->resolve("config", Array) -sharp3 /home/www/station/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(734): Illuminate\Container\Container->make("config", Array) -sharp4 /home/www/station/vendor/laravel/framework/src/Illuminate/Container/Container.php(1210): Illuminate\Foundation\Application->make("config") -sharp5 /home/www/station/vendor/laravel/framework/src/Illuminate/Log/LogManager.php(443): Illuminate\Container\Container->offsetGet("config") -sharp6 /home/www/statio in /home/www/station/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 767

some people say there are spaces in .env, but I checked and there are no spaces

Mar.31,2021

generally, the .env file on push is ignored by git, so you need to check the root directory of the server website for .env, and some installation packages need to reissue and generate config files


try to delete bootstrap/cache and then re- composer update .


delete the vender directory and then execute composer install and then composer dumpautoload

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b367ca-405a5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b367ca-405a5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?