found illuminate/console[">
I'm trying to implement automatic backups in Laravel 8. I decided to use the Laravel-backup package "spatie/laravel-backup".
The problem occurs when I try to install the package using "composer require spatie/laravel-backup".
I encountered this problem:
Issue 1 - spatie/laravel-backup[8.1.0, ..., v8.x-dev] requires illuminate/console^9.0 -> Found illuminate/console[v9.0.0-beta. 1, ... , 9.x-dev] but these are not loaded, probably because it conflicts with another requirement. - Root composer.json requires spatie/laravel-backup ^8.1 ->Can be satisfied by spatie/laravel-backup[8.1.0, 8.1.1, 8.1.2, v8.x-dev].
I tried running these commands from a similar question and nothing changed in the answer:
-composer requires spatie/laravel-backup "^8.1" --ignore-platform-reqs
-Composer requires spatie/laravel-medialibrary
I also tried removing the vendor and composer.lock and then running composer install and the problem persisted.
I guess there is something wrong with my composer.json file:
{ "name": "laravel/laravel", "type": "project", "description": "The Laravel Framework.", "keywords": ["framework", "laravel"], "license": "MIT", "require": { "php": "^7.3|^8.0", "ext-gd": "*", "ext-json": "*", "aws/aws-sdk-php": "~3.0", "darkaonline/l5-swagger": "^8.1", "fruitcake/laravel-cors": "^2.0", "guzzlehttp/guzzle": "^7.0.1", "laravel/framework": "^8.75", "laravel/sanctum": "^2.11", "laravel/tinker": "^2.5", "league/flysystem-aws-s3-v3": "^1.0", "maatwebsite/excel": "^3.1", "tymon/jwt-auth": "^1.0", "ext-pdo": "*" }, "require-dev": { "facade/ignition": "^2.5", "fakerphp/faker": "^1.9.1", "laravel/sail": "^1.0.1", "mockery/mockery": "^1.4.4", "nunomaduro/collision": "^5.10", "phpunit/phpunit": "^9.5.10" }, "autoload": { "psr-4": { "App\": "app/", "Database\Factories\": "database/factories/", "Database\Seeders\": "database/seeders/" } }, "autoload-dev": { "psr-4": { "Tests\": "tests/" } }, "scripts": { "post-autoload-dump": [ "Illuminate\Foundation\ComposerScripts::postAutoloadDump", "@php artisan package:discover --ansi" ], "post-update-cmd": [ "@php artisan vendor:publish --tag=laravel-assets --ansi --force" ], "post-root-package-install": [ "@php -r "file_exists('.env') || copy('.env.example', '.env');"" ], "post-create-project-cmd": [ "@php artisan key:generate --ansi" ] }, "extra": { "laravel": { "dont-discover": [] } }, "config": { "optimize-autoloader": true, "preferred-install": "dist", "sort-packages": true }, "minimum-stability": "dev", "prefer-stable": true }
Thanks to everyone who took the time to review my question. :))
I am using Laravel 9.52 and php 8.2 when installing Spatie backup. Encountered the same error and solved it by ignoring the platform requirements. Suggested in the Git error description.
Based on the comments, install the correct version of Laravel Backup. solved this problem.