Hi,
I was want to publish my laravel project, because that I was read this document:
https://laravel.com/docs/5.6/deployment
It says run this artisan command for optimization:
composer install --optimize-autoloader --no-dev
I was run it but this command was removed 32 packages of my project.
It showed me this:
Loading composer repositories with package information
Installing dependencies from lock file
Package operations: 0 installs, 0 updates, 32 removals
- Removing webmozart/assert (1.3.0)
- Removing theseer/tokenizer (1.1.0)
- Removing symfony/thanks (v1.1.0)
- Removing sebastian/version (2.0.1)
- Removing sebastian/resource-operations (2.0.1)
- Removing sebastian/recursion-context (3.0.0)
- Removing sebastian/object-reflector (1.1.1)
- Removing sebastian/object-enumerator (3.0.3)
- Removing sebastian/global-state (2.0.0)
- Removing sebastian/exporter (3.1.0)
- Removing sebastian/environment (4.0.1)
- Removing sebastian/diff (3.0.1)
- Removing sebastian/comparator (3.0.2)
- Removing sebastian/code-unit-reverse-lookup (1.0.1)
- Removing phpunit/phpunit (7.4.5)
- Removing phpunit/php-token-stream (3.0.1)
- Removing phpunit/php-timer (2.0.0)
- Removing phpunit/php-text-template (1.2.1)
- Removing phpunit/php-file-iterator (2.0.2)
- Removing phpunit/php-code-coverage (6.1.4)
- Removing phpspec/prophecy (1.8.0)
- Removing phpdocumentor/type-resolver (0.4.0)
- Removing phpdocumentor/reflection-docblock (4.3.0)
- Removing phpdocumentor/reflection-common (1.0.1)
- Removing phar-io/version (2.0.1)
- Removing phar-io/manifest (1.0.3)
- Removing myclabs/deep-copy (1.8.1)
- Removing mockery/mockery (1.2.0)
- Removing hamcrest/hamcrest-php (v2.0.0)
- Removing fzaninotto/faker (v1.8.0)
- Removing filp/whoops (2.3.1)
- Removing doctrine/instantiator (1.1.0)
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover
And now in several place of my code error has occurred.
Class 'SebastianBergmann\ObjectEnumerator\Enumerator' not found.
...
But why?
What should I do?
Please help me