when I tried to update my laravel proyect from version 5.8 to 6.0 we received an error with simfony
Mi composer.json:
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"minimum-stability": "dev",
"require": {
"php": "^7.2",
"laravel/framework": "^6.2",
"barryvdh/laravel-dompdf": "^0.8.1",
"fideloper/proxy": "^4.1",
"laracasts/flash": "^3.0",
"laravel/socialite": "^4.3",
"laravel/tinker": "^1.0",
"laravelcollective/html": "~6.0.0",
"maatwebsite/excel": "^3.1",
"picqer/php-barcode-generator": "^0.3.0",
"pulkitjalan/geoip": "^4.0#dev",
"tordek/afiphp": "^0.2.0"
},
"require-dev": {
"facade/ignition": "^1.4",
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
"nunomaduro/collision": "^2.1",
"phpunit/phpunit": "~7.0"
},
"autoload": {
"classmap": [
"database"
],
"psr-4": {
"App\\": "app/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"scripts": {
"post-root-package-install": [
"php -r \"file_exists('.env') || copy('.env.example', '.env');\""
]
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true
}
}
And when i run composer update I received this error:
[Composer\DependencyResolver\SolverProblemsException]
Problem 1
- Installation request for laravel/framework ^6.2 -> satisfiable by lar
avel/framework[6.x-dev].
- laravel/framework 6.x-dev requires symfony/console ^4.3.4 -> no match
ing package found.
How can I repair it? Is posible do it in my project?
My file Composer.json is correct? Is posible update?
You need to install symfony/console ^4.3.4
use command "composer require" to install
Related
I did upgrade from 5.6 to 5.7 to 5.8 with no major problems, but I CAN'T upgrade from 5.8 to 6. Let's see some code:
My composer.json file:
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": "^7.1.3",
"arcanedev/log-viewer": "~4.7.0",
"davejamesmiller/laravel-breadcrumbs": "5.x",
"devmarketer/easynav": "^1.0",
"dompdf/dompdf": "^0.8.2",
"fideloper/proxy": "^4.0",
"guzzlehttp/guzzle": "^6.3",
"intervention/image": "^2.4",
"itsgoingd/clockwork": "^5.0",
"kylekatarnls/laravel-carbon-2": "^1.0.0",
"laracasts/flash": "^3.0",
"laravel/framework": "^6.0",
"laravel/passport": "^7.0",
"laravel/tinker": "^1.0",
"league/flysystem-aws-s3-v3": "~1.0",
"maatwebsite/excel": "^3.1",
"mpdf/mpdf": "^7.1",
"nesbot/carbon": "2.61.0 as 1.39.0",
"phpoffice/phpspreadsheet": "^1.2",
"pragmarx/google2fa-laravel": "^0.2.0",
"pusher/pusher-php-server": "~3.0",
"robbiep/cloudconvert-laravel": "2.*",
"santigarcor/laratrust": "5.0.*",
"sendgrid/sendgrid": "~7",
"symfony/css-selector": "^4.1",
"symfony/dom-crawler": "^4.1",
"tymon/jwt-auth": "1.0.*",
"unsplash/unsplash": "^2.4",
"yajra/laravel-datatables": "^1.5"
},
"require-dev": {
"filp/whoops": "^2.0",
"fzaninotto/faker": "^1.4",
"mockery/mockery": "^1.0",
"nunomaduro/collision": "^2.0",
"phpunit/phpunit": "^7.0",
"squizlabs/php_codesniffer": "^3.2"
},
"autoload": {
"classmap": [
"database/seeds",
"database/factories"
],
"psr-4": {
"App\\": "app/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"extra": {
"laravel": {
"dont-discover": [
]
}
},
"scripts": {
"post-root-package-install": [
"#php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"#php artisan key:generate"
],
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"#php artisan package:discover"
]
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true,
"allow-plugins": {
"kylekatarnls/update-helper": true
}
},
"minimum-stability": "dev",
"prefer-stable": true
}
And the error is:
Problem 1
- Root composer.json requires laravel/framework ^6.0 -> satisfiable by laravel/framework[v6.0.0, ..., 6.x-dev].
- arcanedev/log-viewer[4.7.0, ..., v4.7.x-dev] require arcanedev/support ~4.5.0 -> satisfiable by arcanedev/support[4.5.0].
- arcanedev/support 4.5.0 requires illuminate/support ~5.8.0 -> satisfiable by illuminate/support[v5.8.0, ..., 5.8.x-dev].
- Conclusion: don't install illuminate/support v5.8.36 (conflict analysis result)
- Root composer.json requires arcanedev/log-viewer ~4.7.0 -> satisfiable by arcanedev/log-viewer[4.7.0, ..., v4.7.x-dev].
I've looked on every forum I found on the internet (almost did!) but couldn't find a solution or any hints on what I could be doing wrong.
What could be wrong? Any hints?
Thanks in advance!
The error is caused by the following:
You want to install laravel/framework:^6.0, which comes with illuminate/support:^6.0.
One of your dependencies, arcanedev/log-viewer:~4.7.0 requires arcanedev/support:~4.5.0
And finally, arcanedev/support:~4.5.0 requires laravel's illuminate/support:^5.8.0.
This creates a conflict.
You have 2 ways to resolve the conflict.
Keep laravel at version 5.8
Update the arcanedev dependencies to a version where they work with laravel 6.
Based on arcanedev/log-support's packagist page, I think 5.2 should do it.
"require": {
"php": "^7.1.3",
"arcanedev/log-viewer": "^5.2.0",
"laravel/framework": "^6.0",
...
This is because arcanedev/log-viewer:^5.2.0 requires arcanedev/support:^5.0 which in turn requires illuminate/support:^6.0, removing the conflict.
When I tried to install laravel breeze, using command composer require laravel/breeze --dev, it gives me this error:
Using version ^1.2 for laravel/breeze
./composer.json has been updated
Running composer update laravel/breeze
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/breeze[v1.2.0, ..., 1.x-dev] require illuminate/filesystem ^8.42 -> found illuminate/filesystem[v8.42.0, v8.42.1, v8.43.0, 8.x-dev] but it conflicts with another require.
- Root composer.json requires laravel/breeze ^1.2 -> satisfiable by laravel/breeze[v1.2.0, v1.2.1, 1.x-dev].
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
My current version of laravel : laravel8.
I'm trying to add an users's authentification session on an existing application.
My composer.json file :
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"php": "^7.3|^8.0",
"fideloper/proxy": "^4.4",
"fruitcake/laravel-cors": "^2.0",
"guzzlehttp/guzzle": "^7.0.1",
"laravel/framework": "^8.12",
"laravel/tinker": "^2.5"
},
"require-dev": {
"facade/ignition": "^2.5",
"fakerphp/faker": "^1.9.1",
"laravel/breeze": "^1.2",
"laravel/sail": "^1.0.1",
"mockery/mockery": "^1.4.2",
"nunomaduro/collision": "^5.0",
"phpunit/phpunit": "^9.3.3"
},
You need to update your dependencies listed here
Maybe you will not find "laravel/ui" in your composer.json, if it's the case add to it manually as a property from the parent "require".
Then you have to save the file and run on the terminal the command: composer update
Follows below my composer.json file for reference:
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": [
"framework",
"laravel"
],
"license": "MIT",
"require": {
"php": "^7.2.5|^8.0",
"fideloper/proxy": "^4.4",
"fruitcake/laravel-cors": "^2.0",
"guzzlehttp/guzzle": "^7.0.1",
"laravel/framework": "^8.0",
"laravel/tinker": "^2.5",
"laravel/ui": "^3.0"
},
"require-dev": {
"facade/ignition": "^2.3.6",
"fakerphp/faker": "^1.9.1",
"laravel/breeze": "^1.3",
"mockery/mockery": "^1.3.1",
"nunomaduro/collision": "^5.0",
"phpunit/phpunit": "^9.0|^9.3.3"
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true
},
"extra": {
"laravel": {
"dont-discover": []
}
},
"autoload": {
"psr-4": {
"App\\": "app/"
},
"classmap": [
"database/seeds",
"database/factories"
]
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"#php artisan package:discover --ansi"
],
"post-root-package-install": [
"#php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"#php artisan key:generate --ansi"
]
}
}
Best solution:
delete composer.lock file
Go to composer.json and add to "require" this: "laravel/breeze": "^1.1",
run composer install --ignore-platform-reqs
It's done
Your composer.lock file will generated again including installation
I get this error while installing laravel sanctum by composer
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/sanctum[v2.9.0, ..., 2.x-dev] require illuminate/contracts ^6.9|^7.0|^8.0 -> found illuminate/contracts[v6.10.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev]
but these were not loaded, likely because it conflicts with another require.
- Root composer.json requires laravel/sanctum ^2.9 -> satisfiable by laravel/sanctum[v2.9.0, ..., 2.x-dev].
I tried to install laravel contracts by
composer require illuminate/contracts
but get this error
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires illuminate/contracts ^8.36, found illuminate/contracts[v8.36.0, v8.36.1, v8.36.2, 8.x-dev] but these were not loaded, likely because it conflicts with
another require.
Composer.json
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": [
"framework",
"laravel"
],
"license": "MIT",
"require": {
"php": "^7.1.3",
"darkaonline/l5-swagger": "5.8.*",
"fideloper/proxy": "^4.0",
"fruitcake/laravel-cors": "^2.0",
"iatstuti/laravel-cascade-soft-deletes": "1.0.*",
"laravel/framework": "5.8.*",
"laravel/tinker": "^1.0",
"laravelcollective/html": "^5.2.0",
"morilog/jalali": "3.*",
"niklasravnsborg/laravel-pdf": "^3.1",
"nwidart/laravel-modules": "^5.1",
"predis/predis": "^1.1",
"shetabit/payment": "^2.1",
"ext-json": "*"
},
"require-dev": {
"beyondcode/laravel-dump-server": "^1.0",
"filp/whoops": "^2.0",
"fzaninotto/faker": "^1.4",
"mockery/mockery": "^1.0",
"nunomaduro/collision": "^3.0",
"phpunit/phpunit": "^7.5"
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true
},
"extra": {
"laravel": {
"dont-discover": []
}
},
"autoload": {
"psr-4": {
"App\\": "app/",
"Modules\\": "Modules/"
},
"classmap": [
"database/seeds",
"database/factories"
]
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"#php artisan package:discover --ansi"
],
"post-root-package-install": [
"#php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"#php artisan key:generate --ansi"
]
}
}
laravel/framework is pinned to v5.8 and laravel/sanctum is not compatible with that. It needs at least Laravel v6
You are using laravel version "laravel/framework": "5.8.*" which does not support laravel/sanctum
Try to upgrade your project to at-least laravel/framework": "7.0.* by following the guide enter link description here
Then Run $composer update
You Need to compatible version of 'illuminate/contracts' and Apparently this package is exist in your project.
check 'composer.json' file and fix 'illuminate/contracts' fits 'laravel/sanctum' and laravel version.
I have the following error by installing spatie/laravel-stripe-webhooks whit composer
after trying to downgrade composer version or remove some packages , could't resolve the problem
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires spatie/laravel-stripe-webhooks 2.0.0 -> satisfiable by spatie/laravel-stripe-webhooks[2.0.0].
- spatie/laravel-stripe-webhooks 2.0.0 requires illuminate/support ~5.8.0 -> found illuminate/support[v5.8.0, ..., 5.8.x-dev] but it conflicts with your root composer.json require (^8.29).
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
Already try to install all available version of this pakage but without success.
Here is my composer.json file:
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": [
"framework",
"laravel"
],
"license": "MIT",
"require": {
"php": "^7.3|^8.0",
"fideloper/proxy": "^4.4",
"fruitcake/laravel-cors": "^2.0",
"guzzlehttp/guzzle": "^7.0.1",
"illuminate/console": "^8.29",
"illuminate/support": "^8.29",
"laravel/cashier": "^12.9",
"laravel/framework": "^8.12",
"laravel/tinker": "^2.5",
"laravel/ui": "^3.2"
},
"require-dev": {
"facade/ignition": "^2.5",
"fakerphp/faker": "^1.9.1",
"laravel/sail": "^1.0.1",
"mockery/mockery": "^1.4.2",
"nunomaduro/collision": "^5.0",
"phpunit/phpunit": "^9.3.3"
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true
},
"extra": {
"laravel": {
"dont-discover": []
}
},
"autoload": {
"psr-4": {
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"#php artisan package:discover --ansi"
],
"post-root-package-install": [
"#php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"#php artisan key:generate --ansi"
]
}
}
Have somepne experience whit problem like this one?
Thanks in advance!
The problem is because of in spatie/laravel-stripe-webhooks the illuminate/support version required as ~5.8.0 which conflicts with your composer.json illuminate/support version (you can check it in the package v2.0.0 Link)
You can upgrade it to v2.5.0 (current last release) which requires "illuminate/support": "^6.0|^7.0|^8.0", and its satisfiable with your version "illuminate/support": "^8.29".
To do that just call composer require spatie/laravel-stripe-webhooks
Actually Im trying to set API for my website on Laravel. I found that I need to add CreateFreshApiToken to Kernel.php in order to use it. Well, I wish could, but it doesn't exist. Then I have found I can get it via
composer require laravel/passport
I run it and have this one
composer require laravel/passport
./composer.json has been updated
Running composer update laravel/passport
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- artogrig/laravel-make-service[1.0.0, ..., 1.0.1] require illuminate/support ~5 -> found illuminate/support[v5.0.0, ..., 5.8.x-dev] but these were not loaded, likely because it conflicts with another require.
- Root composer.json requires artogrig/laravel-make-service ^1.0 -> satisfiable by artogrig/laravel-make-service[1.0.0, 1.0.1].
This is my comsposer.json:
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": [
"framework",
"laravel"
],
"license": "MIT",
"require": {
"php": "^7.2.5",
"artogrig/laravel-make-service": "^1.0",
"cviebrock/eloquent-sluggable": "^7.0",
"fideloper/proxy": "^4.2",
"fruitcake/laravel-cors": "^1.0",
"guzzlehttp/guzzle": "^6.3",
"intervention/image": "^2.5",
"laravel/framework": "^7.0",
"laravel/passport": "^4.0",
"laravel/socialite": "^3.0",
"laravel/tinker": "^2.0",
"laravel/ui": "^2.0",
"tcg/voyager": "^1.4"
},
"require-dev": {
"facade/ignition": "^2.0",
"fzaninotto/faker": "^1.9.1",
"mockery/mockery": "^1.3.1",
"nunomaduro/collision": "^4.1",
"phpunit/phpunit": "^8.5"
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true
},
"extra": {
"laravel": {
"dont-discover": []
}
},
"autoload": {
"psr-4": {
"App\\": "app/"
},
"classmap": [
"database/seeds",
"database/factories"
]
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"#php artisan package:discover --ansi"
],
"post-root-package-install": [
"#php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"#php artisan key:generate --ansi"
]
},
"repositories": {
"hooks": {
"type": "composer",
"url": "https://larapack.io"
}
}
}
I have no idea what to do with. Could someone help me, please!
Thanks!
The dependency artogrig/laravel-make-service only works with Illuminate\Support 5, for what this package does, create service classes and is unmaintained. I would simply just remove it and your dependencies would be fixed.