Your composer.json not being formatted makes it very hard to read. But normally this is due to a dependency problem. So double check your dependencies is my suggestion.
After upgrade from 6 -> 7
I've upgraded with below composer.json but when running php artisan optimize i get this:
PHP Warning: require(/var/www/myproject_dev2/myproject/vendor/composer/../../src/Illuminate/Foundation/helpers.php): failed to open stream: No such file or directory in /var/www/myproject_dev2/myproject/vendor/composer/autoload_real.php on line 41 PHP Fatal error: require(): Failed opening required '/var/www/myproject_dev2/myproject/vendor/composer/../../src/Illuminate/Foundation/helpers.php' (include_path='.:/usr/share/php') in /var/www/myproject_dev2/myproject/vendor/composer/autoload_real.php on line 41
Any idea ?
Composer.json
{ "name": "laravel/framework", "description": "The Laravel Framework.", "keywords": ["framework", "laravel"], "license": "MIT", "homepage": "https://laravel.com", "support": { "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, "authors": [ { "name": "Taylor Otwell", "email": "[email protected]" } ], "require": { "php": "^7.2.5|^8.0", "ext-json": "", "ext-mbstring": "", "ext-openssl": "*", "doctrine/inflector": "^1.4|^2.0", "dragonmantank/cron-expression": "^2.3.1", "egulias/email-validator": "^2.1.10", "league/commonmark": "^1.3", "league/flysystem": "^1.1", "monolog/monolog": "^2.0", "nesbot/carbon": "^2.31", "opis/closure": "^3.6", "psr/container": "^1.0", "psr/simple-cache": "^1.0", "ramsey/uuid": "^3.7|^4.0", "swiftmailer/swiftmailer": "^6.0", "symfony/console": "^5.0", "symfony/error-handler": "^5.0", "symfony/finder": "^5.0", "symfony/http-foundation": "^5.0", "symfony/http-kernel": "^5.0", "symfony/mime": "^5.0", "symfony/polyfill-php73": "^1.17", "symfony/process": "^5.0", "symfony/routing": "^5.0", "symfony/var-dumper": "^5.0", "tijsverkoyen/css-to-inline-styles": "^2.2.2", "vlucas/phpdotenv": "^4.0", "voku/portable-ascii": "^1.4.8", "laravel-notification-channels/fcm": "~2.0", "mollie/laravel-cashier-mollie": "^1.0", "laravel/tinker": "^2.0", "maatwebsite/excel": "^3.1", "optiosteam/payconiq-client-php": "1.0.3", "phpoffice/phpspreadsheet": "^1.14", "simplesoftwareio/simple-qrcode": "^4.2", "web-token/jwt-core": "^2.2", "web-token/jwt-framework": "^2.1" }, "replace": { "illuminate/auth": "self.version", "illuminate/broadcasting": "self.version", "illuminate/bus": "self.version", "illuminate/cache": "self.version", "illuminate/config": "self.version", "illuminate/console": "self.version", "illuminate/container": "self.version", "illuminate/contracts": "self.version", "illuminate/cookie": "self.version", "illuminate/database": "self.version", "illuminate/encryption": "self.version", "illuminate/events": "self.version", "illuminate/filesystem": "self.version", "illuminate/hashing": "self.version", "illuminate/http": "self.version", "illuminate/log": "self.version", "illuminate/mail": "self.version", "illuminate/notifications": "self.version", "illuminate/pagination": "self.version", "illuminate/pipeline": "self.version", "illuminate/queue": "self.version", "illuminate/redis": "self.version", "illuminate/routing": "self.version", "illuminate/session": "self.version", "illuminate/support": "self.version", "illuminate/testing": "self.version", "illuminate/translation": "self.version", "illuminate/validation": "self.version", "illuminate/view": "self.version" }, "require-dev": { "aws/aws-sdk-php": "^3.155", "doctrine/dbal": "^2.6", "filp/whoops": "^2.8", "guzzlehttp/guzzle": "^6.3.1|^7.0.1", "league/flysystem-cached-adapter": "^1.0", "mockery/mockery": "~1.3.3|^1.4.2", "moontoast/math": "^1.1", "orchestra/testbench-core": "^5.8", "pda/pheanstalk": "^4.0", "phpunit/phpunit": "^8.4|^9.3.3", "predis/predis": "^1.1.1", "symfony/cache": "^5.0" }, "provide": { "psr/container-implementation": "1.0" }, "conflict": { "tightenco/collect": "<5.5.33" }, "autoload": { "files": [ "src/Illuminate/Foundation/helpers.php", "src/Illuminate/Support/helpers.php", "app/helpers.php", "app/TemplateHelper.php", "app/PayconiqJWSUtil.php", "app/EmailHelper.php" ], "psr-4": { "Illuminate\": "src/Illuminate/" } }, "autoload-dev": { "files": [ "tests/Database/stubs/MigrationCreatorFakeMigration.php" ], "psr-4": { "Illuminate\Tests\": "tests/" } }, "extra": { "branch-alias": { "dev-master": "7.x-dev" } }, "suggest": { "ext-ftp": "Required to use the Flysystem FTP driver.", "ext-gd": "Required to use Illuminate\Http\Testing\FileFactory::image().", "ext-memcached": "Required to use the memcache cache driver.", "ext-pcntl": "Required to use all features of the queue worker.", "ext-posix": "Required to use all features of the queue worker.", "ext-redis": "Required to use the Redis cache and queue drivers (^4.0|^5.0).", "aws/aws-sdk-php": "Required to use the SQS queue driver, DynamoDb failed job storage and SES mail driver (^3.155).", "doctrine/dbal": "Required to rename columns and drop SQLite columns (^2.6).", "filp/whoops": "Required for friendly error pages in development (^2.8).", "fakerphp/faker": "Required to use the eloquent factory builder (^1.9.1).", "guzzlehttp/guzzle": "Required to use the HTTP Client, Mailgun mail driver and the ping methods on schedules (^6.3.1|^7.0.1).", "laravel/tinker": "Required to use the tinker console command (^2.0).", "league/flysystem-aws-s3-v3": "Required to use the Flysystem S3 driver (^1.0).", "league/flysystem-cached-adapter": "Required to use the Flysystem cache (^1.0).", "league/flysystem-sftp": "Required to use the Flysystem SFTP driver (^1.0).", "mockery/mockery": "Required to use mocking (~1.3.3|^1.4.2).", "moontoast/math": "Required to use ordered UUIDs (^1.1).", "nyholm/psr7": "Required to use PSR-7 bridging features (^1.2).", "pda/pheanstalk": "Required to use the beanstalk queue driver (^4.0).", "phpunit/phpunit": "Required to use assertions and run tests (^8.4|^9.3.3).", "predis/predis": "Required to use the predis connector (^1.1.2).", "psr/http-message": "Required to allow Storage::put to accept a StreamInterface (^1.0).", "pusher/pusher-php-server": "Required to use the Pusher broadcast driver (^4.0).", "symfony/cache": "Required to PSR-6 cache bridge (^5.0).", "symfony/filesystem": "Required to create relative storage directory symbolic links (^5.0).", "symfony/psr-http-message-bridge": "Required to use PSR-7 bridging features (^2.0).", "wildbit/swiftmailer-postmark": "Required to use Postmark mail driver (^3.0)." }, "config": { "sort-packages": true, "github-oauth": { "github.com": "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" } }, "minimum-stability": "dev", "prefer-stable": true }
Please or to participate in this conversation.