Are you doing something like :
<?php
use Config;
class SomethingController extends Controller {
}
If so, removing the 'use Config' might help.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Our admin did a php upgrade from php-5.5.38-1 to php-5.5.38-5 and now our laravel application is failing with the message: "The use statement with non-compound name 'Config' has no effect". We get this error when trying to access the app either via the browser or via php artisan. I have been unable to locate any solutions on the web. Any help would be appreciated. I have attempted a compser dump-autoload, composer update and restarted all http services. This is running on CentOS 6.
Thanks
Are you doing something like :
<?php
use Config;
class SomethingController extends Controller {
}
If so, removing the 'use Config' might help.
Please or to participate in this conversation.