PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, January 4, 2022

[FIXED] Class 'BeyondCode\DumpServer\DumpServerServiceProvider' not found when I make composer install --optimize-autoloader --no-dev

 January 04, 2022     composer-php, laravel, laravel-5.8, laravel-artisan     No comments   

Issue

I was deploying my Laravel application and wanted to optimize the autoload normally with the command composer install --optimize-autoloader --no-dev. This is an application that runs Laravel 5.8.

composer install --optimize-autoloader --no-dev

I get the following error:

In Application.php line 662: Class 'BeyondCode\DumpServer\DumpServerServiceProvider' not found
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1


Solution

If you do not have development dependencies on the laravel-dump-server, remove the following line from composer.json.

"beyondcode/laravel-dump-server": "^1.0".

Then run the following command.

composer install

Or, even easier, just run the following.

composer remove --dev beyondcode/laravel-dump-server


Answered By - Karl Hill
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing