Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

fbc's avatar
Level 2

can't PHP ARTISAN SERVE

composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating optimized autoload files
Warning: Ambiguous class resolution, "JakubOnderka\PhpConsoleHighlighter\Highlighter" was found in both "/Users/fbc/PhpstormProjects/gm/vendor/jakub-onderka/php-console-highlighter/src/Highlighter.php" and "/Users/fbc/PhpstormProjects/gm/vendor/jakub-onderka/php-console-highlighter/src/JakubOnderka/PhpConsoleHighlighter/Highlighter.php", the first will be used.
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover

In ProviderRepository.php line 208:

  Class 'NunoMaduro\Collision\Adapters\Laravel\CollisionServiceProvider' not
  found


Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1
Vader:gm fbc$ php artisan serve

In ProviderRepository.php line 208:

  Class 'NunoMaduro\Collision\Adapters\Laravel\CollisionServiceProvider' not found

I've tried COMPOSER DUMP-AUTOLOAD

I can't seem to get rid of it.

0 likes
7 replies
Nakov's avatar

@fbc do you have the collision package installed? If you don't then remove the CollisionServiceProvider from the providers array within your confing/app.php file.

fylzero's avatar

I would try just deleting your /vendor directory and see if composer install fixes it.

If there's a bug in the jakub-onderka/php-console-highlighter ...do the same thing but remove this package from your composer.json first.

1 like
fbc's avatar
Level 2

it's not there, it's being autodiscovered.

fylzero's avatar

Try php artisan cache:clear and php artisan config:clear?

fylzero's avatar
fylzero
Best Answer
Level 67

What happens when you delete /vendor and run composer install?

fylzero's avatar

Sorry I meant composer install not migrate. :) Corrected my comment.

programmer_asa's avatar

You have made changes to the /vendor folder, use the COMPOSER UPDATE command and all your problems will be solved.

1 like

Please or to participate in this conversation.