Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laravel 5.6 to Laravel 8 upgrade issue : Class config does not exist #41847

Closed
aherrao opened this issue Apr 6, 2022 · 0 comments
Closed

Laravel 5.6 to Laravel 8 upgrade issue : Class config does not exist #41847

aherrao opened this issue Apr 6, 2022 · 0 comments

Comments

@aherrao
Copy link

aherrao commented Apr 6, 2022

  • Laravel Version: 8.0
  • PHP Version: 7.4

Description:

We are using Laravel library in the core PHP project and wanted to update the major version to Laravel-8 but we are facing some internal issues when using helpers like url(), route(), etc.

Also, we don't have php artisan in the project so

php artisan config:clear can't use

Steps To Reproduce:

Just upgrade to laravel-8 from 5.6

**Fatal error**: Uncaught ReflectionException: Class config does not exist in /var/www/wmd/current/wmdcore-nightly/vendor/laravel/framework/src/Illuminate/Container/Container.php:877 Stack trace: #0 /var/www/wmd/current/wmdcore-nightly/vendor/laravel/framework/src/Illuminate/Container/Container.php(877): ReflectionClass->__construct('config') #1 /var/www/wmd/current/wmdcore-nightly/vendor/laravel/framework/src/Illuminate/Container/Container.php(758): Illuminate\Container\Container->build('config') #2 /var/www/wmd/current/wmdcore-nightly/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(851): Illuminate\Container\Container->resolve('config', Array, true) #3 /var/www/wmd/current/wmdcore-nightly/vendor/laravel/framework/src/Illuminate/Container/Container.php(694): Illuminate\Foundation\Application->resolve('config', Array) #4 /var/www/wmd/current/wmdcore-nightly/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(836): Illuminate\Container\Container->make('config', Array) #5 /var/www/wmd/current/w in /var/www/wmd/current/wmdcore-nightly/vendor/laravel/framework/src/Illuminate/Container/Container.php on line 879

@laravel laravel locked and limited conversation to collaborators Apr 6, 2022
@driesvints driesvints converted this issue into discussion #41848 Apr 6, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant