Skip to content
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

Fatal error: Uncaught ReflectionException: Class "config" does not exist in D:\ContributionApp\vendor\laravel\framework\src\Illuminate\Container\Container.php:912 #48239

Closed
khaledHAssi opened this issue Aug 30, 2023 · 1 comment

Comments

@khaledHAssi
Copy link

Laravel Version

10

PHP Version

8.1

Database Driver & Version

mmySql 8...

Description

when i wanna use laravel-dompdf it return this error :

Fatal error: Uncaught ReflectionException: Class "config" does not exist in D:\ContributionApp\vendor\laravel\framework\src\Illuminate\Container\Container.php:912
Stack trace:
#0 D:\ContributionApp\vendor\laravel\framework\src\Illuminate\Container\Container.php(912): ReflectionClass->__construct('config')
#1 D:\ContributionApp\vendor\laravel\framework\src\Illuminate\Container\Container.php(795): Illuminate\Container\Container->build('config')
#2 D:\ContributionApp\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(937): Illuminate\Container\Container->resolve('config', Array, true)
#3 D:\ContributionApp\vendor\laravel\framework\src\Illuminate\Container\Container.php(731): Illuminate\Foundation\Application->resolve('config', Array)
#4 D:\ContributionApp\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(922): Illuminate\Container\Container->make('config', Array)
#5 D:\ContributionApp\vendor\laravel\framework\src\Illuminate\Support\ServiceProvider.php(135): Illuminate\Foundation\Application->make('config')
#6 D:\ContributionApp\vendor\barryvdh\laravel-dompdf\src\ServiceProvider.php(28): Illuminate\Support\ServiceProvider->mergeConfigFrom('D:\Contribution...', 'dompdf')
#7 D:\ContributionApp\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(768): Barryvdh\DomPDF\ServiceProvider->register()
#8 D:\ContributionApp\bootstrap\app.php(45): Illuminate\Foundation\Application->register(Object(Barryvdh\DomPDF\ServiceProvider))
#9 D:\ContributionApp\artisan(20): require_once('D:\Contribution...')
#10 {main}

Next Illuminate\Contracts\Container\BindingResolutionException: Target class [config] does not exist. in D:\ContributionApp\vendor\laravel\framework\src\Illuminate\Container\Container.php:914
Stack trace:
#0 D:\ContributionApp\vendor\laravel\framework\src\Illuminate\Container\Container.php(795): Illuminate\Container\Container->build('config')
#1 D:\ContributionApp\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(937): Illuminate\Container\Container->resolve('config', Array, true)
#2 D:\ContributionApp\vendor\laravel\framework\src\Illuminate\Container\Container.php(731): Illuminate\Foundation\Application->resolve('config', Array)
#3 D:\ContributionApp\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(922): Illuminate\Container\Container->make('config', Array)
#4 D:\ContributionApp\vendor\laravel\framework\src\Illuminate\Support\ServiceProvider.php(135): Illuminate\Foundation\Application->make('config')
#5 D:\ContributionApp\vendor\barryvdh\laravel-dompdf\src\ServiceProvider.php(28): Illuminate\Support\ServiceProvider->mergeConfigFrom('D:\Contribution...', 'dompdf')
#6 D:\ContributionApp\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(768): Barryvdh\DomPDF\ServiceProvider->register()
#7 D:\ContributionApp\bootstrap\app.php(45): Illuminate\Foundation\Application->register(Object(Barryvdh\DomPDF\ServiceProvider))
#8 D:\ContributionApp\artisan(20): require_once('D:\Contribution...')
#9 {main}
thrown in D:\ContributionApp\vendor\laravel\framework\src\Illuminate\Container\Container.php on line 914

Steps To Reproduce

I need the solution pls ♥

@crynobone
Copy link
Member

Hi there,

Thanks for reporting the problem you are encountering, but it looks like this is a question which may be better suited for a support channel. We only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repository you can try one of the following channels:

However, this issue will not be locked and everyone is still free to discuss solutions to your problem!

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants