Comments (4)
I have the same problem: during making a Docker image for production, any php artisan
command failed with the Class 'BeyondCode\DumpServer\DumpServerServiceProvider' not found
error.
I finally find that it was due to /bootstrap/cache files I copy from my local Laravel app to the Docker image. My cached files was generated with require-dev dependencies so reference the 'BeyondCode\DumpServer\DumpServerServiceProvider' class.
My solution: remove /bootstrap/cache
files from my Docker image.
COPY . /var/www/html
RUN rm /var/www/html/bootstrap/cache/*
from laravel-dump-server.
@kamerk22 Have you tried calling php artisan clear-compiled
? Seems like you have the service provider still cached somewhere. Since it gets automatically registered when installing the package this can only mean that your application still thinks the package is installed.
from laravel-dump-server.
[2018-12-28 09:07:30] staging.ERROR: Class 'BeyondCode\DumpServer\DumpServerServiceProvider' not found {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Class 'BeyondCode\\DumpServer\\DumpServerServiceProvider' not found at /var/www/web-api/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:638)
[stacktrace]
#0 /var/www/web-api/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(570): Illuminate\\Foundation\\Application->resolveProvider('BeyondCode\\\\Dump...')
#1 /var/www/web-api/vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php(75): Illuminate\\Foundation\\Application->register('BeyondCode\\\\Dump...')
#2 /var/www/web-api/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(550): Illuminate\\Foundation\\ProviderRepository->load(Array)
#3 /var/www/web-api/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/RegisterProviders.php(17): Illuminate\\Foundation\\Application->registerConfiguredProviders()
#4 /var/www/web-api/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(204): Illuminate\\Foundation\\Bootstrap\\RegisterProviders->bootstrap(Object(Illuminate\\Foundation\\Application))
#5 /var/www/web-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(162): Illuminate\\Foundation\\Application->bootstrapWith(Array)
#6 /var/www/web-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(146): Illuminate\\Foundation\\Http\\Kernel->bootstrap()
#7 /var/www/web-api/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(116): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#8 /var/www/web-api/public/index.php(55): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#9 {main}
"}
^C
root@ip-172-31-10-183:/var/www/web-api# ^C
root@ip-172-31-10-183:/var/www/web-api# php artisan clear-compiled
In Application.php line 638:
Class 'BeyondCode\DumpServer\DumpServerServiceProvider' not found
Amazing
from laravel-dump-server.
You should update your composer>
Just run composer Update
Response is
Discovered Package: beyondcode/laravel-dump-server
from laravel-dump-server.
Related Issues (20)
- Update packigst please
- Support 4 laravel 6.x HOT 6
- Support for Laravel 7 HOT 2
- dump or dump-server doesn't seem to work sometimes on WSL HOT 1
- Problem installing Laravel 6 HOT 2
- `dump` never works, `dd` does HOT 6
- problem install on laravel 7 HOT 2
- Bump for 8.0 HOT 5
- Dump server not working anymore on Laravel 7.28.4 HOT 4
- Does not seem to work with latest laravel 8 and dump-server HOT 7
- not working in docker HOT 3
- PHP 8 Support
- the order of 'suggestions' has been swapped
- Incompatible with spatie/laravel-ray
- not able to install in laravel 6 and php 8
- Laravel 9.0 HOT 1
- Controller null ghost issues
- dump is only working on port 9912 HOT 1
- Restrict dump from specific domain HOT 1
- Laravel 11 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-dump-server.