laracasts / Laravel-5-Generators-Extended

This package extends the core file generators that are included with Laravel 5
https://laracasts.com/lessons/faster-workflow-with-generators
MIT License
2.45k stars 347 forks source link

I couldn't install this package with Laravel 5.8.* #194

Open vjain1994 opened 3 years ago

vjain1994 commented 3 years ago

What I did

composer require --dev laracasts/generators Using version ^2.0 for laracasts/generators ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.

Problem 1

Installation failed, reverting ./composer.json to its original content.

What I expected to happen

??

What happened

??

What I've already tried to fix it

??

magicansk commented 3 years ago

Same issue here too.

Run command:

composer require laracasts/generators --dev

composer require laracasts/generators --dev
Using version ^2.0 for laracasts/generators
./composer.json has been updated
Running composer update laracasts/generators
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - Root composer.json requires laracasts/generators ^2.0 -> satisfiable by laracasts/generators[2.0.0].
    - laracasts/generators 2.0.0 requires illuminate/support ~6.0|~7.0|~8.0 -> found illuminate/support[v6.0.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.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Composer json file

"require": {
        "php": "^7.1.3",
        "backpack/base": "^1.1.9",
        "backpack/crud": "3.6.*",
        "encore/laravel-admin": "^1.8",
        "fideloper/proxy": "^4.0",
        "laravel-admin-ext/redis-manager": "^1.3",
        "laravel/framework": "5.8.*",
        "laracasts/generators": "^2.0",
        "laravel/tinker": "^1.0",
        "leantony/laravel-grid": "2.0.x-dev"
    },
bfadamm commented 1 year ago

Same issue here too.

Run command:

composer require laracasts/generators --dev

composer require laracasts/generators --dev
Using version ^2.0 for laracasts/generators
./composer.json has been updated
Running composer update laracasts/generators
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - Root composer.json requires laracasts/generators ^2.0 -> satisfiable by laracasts/generators[2.0.0].
    - laracasts/generators 2.0.0 requires illuminate/support ~6.0|~7.0|~8.0 -> found illuminate/support[v6.0.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.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Composer json file

"require": {
        "php": "^7.1.3",
        "backpack/base": "^1.1.9",
        "backpack/crud": "3.6.*",
        "encore/laravel-admin": "^1.8",
        "fideloper/proxy": "^4.0",
        "laravel-admin-ext/redis-manager": "^1.3",
        "laravel/framework": "5.8.*",
        "laracasts/generators": "^2.0",
        "laravel/tinker": "^1.0",
        "leantony/laravel-grid": "2.0.x-dev"
    },

https://github.com/laracasts/Laravel-5-Generators-Extended/releases/tag/2.0.0

Under "Breaking changes" - dropped support for Laravel 5.x - https://github.com/laracasts/Laravel-5-Generators-Extended/commit/5e8bfbb0086f310630ef9b5a3b7e0c06df9c605b; don't worry, we've added support for Laravel 8 to the v1 branch before releasing 2.0.0;

bfadamm commented 1 year ago

Please downgrade your version to below 2.0.0 to fix this. You shouldn't be using Laravel 5.8 now though.

FzSalehi commented 1 year ago

Please downgrade your version to below 2.0.0 to fix this. You shouldn't be using Laravel 5.8 now though.

this is client issue tho, it should be done some how, i don't understand this error :

aracasts/generators dev-master requires illuminate/support ~6.0|~7.0|~8.0|~9.0  
  |^10.0 -> found illuminate/support[v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.  
  0, ..., v8.83.27, v9.0.0, ..., v9.52.7, v10.0.0, ..., v10.9.0] but these were not loa  
  ded, likely because it conflicts with another require

laracasts/generators dev-master requires illuminate/support ~6 - 10.9.0. laravel 5.7 is using illuminate/supportself.versiont in composer.lock

how to solve this conflict .. I'm having a hard time in here.

bfadamm commented 1 year ago

Please downgrade your version to below 2.0.0 to fix this. You shouldn't be using Laravel 5.8 now though.

this is client issue tho, it should be done some how, i don't understand this error :

aracasts/generators dev-master requires illuminate/support ~6.0|~7.0|~8.0|~9.0  
  |^10.0 -> found illuminate/support[v6.0.0, ..., v6.20.44, v7.0.0, ..., v7.30.6, v8.0.  
  0, ..., v8.83.27, v9.0.0, ..., v9.52.7, v10.0.0, ..., v10.9.0] but these were not loa  
  ded, likely because it conflicts with another require

laracasts/generators dev-master requires illuminate/support ~6 - 10.9.0. laravel 5.7 is using illuminate/supportself.versiont in composer.lock

how to solve this conflict .. I'm having a hard time in here.

I can't help with the information given but also this should be a new issue as you're using a different laravel version. It will likely be the same fix but an even lower version of laracasts/generators.

I would need the full error to be able to help not just the first/last line.