Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not install it on Laravel 9 #32

Open
gldtn opened this issue Apr 10, 2022 · 32 comments
Open

Could not install it on Laravel 9 #32

gldtn opened this issue Apr 10, 2022 · 32 comments

Comments

@gldtn
Copy link

gldtn commented Apr 10, 2022

Your requirements could not be resolved to an installable set of packages.

Problem 1
- Root composer.json requires asantibanez/livewire-calendar ^2.1 -> satisfiable by asantibanez/livewire-calendar[2.1.0].
- asantibanez/livewire-calendar 2.1.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.

@gldtn
Copy link
Author

gldtn commented Apr 13, 2022

If I try to add "illuminate/support" to composer.json I get a conflict with laravel framework, what is the correct way to fix this?

@mark1828
Copy link

Same issue here

@kaizerenrique
Copy link

Your requirements could not be resolved to an installable set of packages.

Problem 1
- Root composer.json requires asantibanez/livewire-calendar ^2.1 -> satisfiable by asantibanez/livewire-calendar[2.1.0].
- asantibanez/livewire-calendar 2.1.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.

@NeverioDev
Copy link

Same issue here :(

@clillefield
Copy link

Same issue. Would love to us this!

@gamorvi
Copy link

gamorvi commented May 6, 2022

Facing the same issue, I reported this on the sample app, glad to see I'm not alone with this issue on L9.

I get the below when I do a composer require same as reported by @kaizerenrique:

Problem 1

  • Root composer.json requires asantibanez/livewire-calendar ^2.1 -> satisfiable by asantibanez/livewire-calendar[2.1.0].
  • asantibanez/livewire-calendar 2.1.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.

@ekandreas
Copy link

ekandreas commented May 30, 2022

When will this package be upgraded to support L9?

@lrljoe
Copy link

lrljoe commented Jun 1, 2022

If you fork the repo, then you can make the change to support 9.x yourself until it's sorted, just edit composer.json
Where it reads: "illuminate/support": "^6.0|^7.0|^8.0",
Replace with: "illuminate/support": "^6.0|^7.0|^8.0|^9.0",

It'll then work as expected. Currently waiting on @asantibanez to merge @Butochnikov pull request which does exactly that.

@clillefield
Copy link

How do I install a forked repo in L9?

@lrljoe
Copy link

lrljoe commented Jun 8, 2022

Rather than forking it yourself, you may as well take advantage of someone else's fixed fork.

In your composer.json add the following which will use the repository which @Butochnikov has already forked and updated to work with Laravel 9.

"repositories": [{ "type": "package", "canonical": false, "package": { "version": "master", "name": "asantibanez/livewire-calendar", "source": { "url": "https://github.com/Butochnikov/livewire-calendar.git", "type": "git", "reference": "master" } } }]

Then run
composer require asantibanez/livewire-calendar:*

It'll then install for you.

Just remember to undo that and use the original when @asantibanez gets around to accepting the pull request.

@clillefield
Copy link

It worked, thank you so much! I had been looking for quite a while trying to figure this out.

@clillefield
Copy link

Now it says asantibanez/livewire-calendar class not found. I give up.

@abbasmashaddy72
Copy link

abbasmashaddy72 commented Jul 2, 2022

Same issue. I Would love to use this!

@asantibanez @naszybko @barryvdh

@da-sie
Copy link
Contributor

da-sie commented Jul 2, 2022

@abbasmashaddy72 @lrljoe this one also works:
Add in composer.json
"repositories": [ { "type": "vcs", "url": "https://github.com/Butochnikov/livewire-calendar" } ],

and then in require section:

"asantibanez/livewire-calendar": "dev-master",

and then composer install
Works in php 8.0, 8.1 + Laravel 9

@abbasmashaddy72
Copy link

Thanks Installed Without any issues

@kurucu
Copy link

kurucu commented Aug 1, 2022

Now it says asantibanez/livewire-calendar class not found. I give up.

I got this too, add the following to composer.json:

"autoload": {
        "psr-4": {
            "Asantibanez\\LivewireCalendar\\": "vendor/asantibanez/livewire-calendar/src/"
        }
    }

You also need to add the Laravel Providers and Aliases manually to config/app.php:

    'providers' => [
        //...
        \Asantibanez\LivewireCalendar\LivewireCalendarServiceProvider::class,
    ],

   'aliases' => [
        //...
        "LivewireCalendar" => \Asantibanez\LivewireCalendar\LivewireCalendarFacade::class,
    ],

@rabol
Copy link

rabol commented Nov 16, 2022

same issue here

@abbasmashaddy72
Copy link

@rabol

You follow the above instruction

#32 (comment)

@kurucu
Copy link

kurucu commented Nov 16, 2022

Is this package abandoned?

@abbasmashaddy72
Copy link

No

But Currently Not Yet Compatible with Laravel 9

You follow the below instruction
You Can Install without any issues

@kurucu

#32 (comment)

@kurucu
Copy link

kurucu commented Nov 16, 2022

I have it installed and working, but the last code to be committed was in January 2021. All that’s needed is a PR to be merged and tested, so it seems abandoned.

@rabol
Copy link

rabol commented Nov 16, 2022

the described solution is just a work-around - if one do this, then one is missing out on any new updates!

Either the original author make the changes or someone has to clone and maintain

@abbasmashaddy72
Copy link

You are right @rabol

@rabol
Copy link

rabol commented Nov 16, 2022

I have cloned this repository and will apply all PR's within the next 1-2 days

@lrljoe
Copy link

lrljoe commented Nov 16, 2022 via email

@abbasmashaddy72
Copy link

I have cloned this repository and will apply all PR's within the next 1-2 days

Great News

@grafxflow
Copy link

Rather than forking it yourself, you may as well take advantage of someone else's fixed fork.

In your composer.json add the following which will use the repository which @Butochnikov has already forked and updated to work with Laravel 9.

"repositories": [{ "type": "package", "canonical": false, "package": { "version": "master", "name": "asantibanez/livewire-calendar", "source": { "url": "https://github.com/Butochnikov/livewire-calendar.git", "type": "git", "reference": "master" } } }]

Then run composer require asantibanez/livewire-calendar:*

It'll then install for you.

Just remember to undo that and use the original when @asantibanez gets around to accepting the pull request.

In the terminal I had to use.

composer require asantibanez/livewire-calendar:dev-master

@jordivela007
Copy link

Works with PHP 8.2.3 Laravel 10.11.0

Rather than forking it yourself, you may as well take advantage of someone else's fixed fork.
In your composer.json add the following which will use the repository which @Butochnikov has already forked and updated to work with Laravel 9.
"repositories": [{ "type": "package", "canonical": false, "package": { "version": "master", "name": "asantibanez/livewire-calendar", "source": { "url": "https://github.com/Butochnikov/livewire-calendar.git", "type": "git", "reference": "master" } } }]
Then run composer require asantibanez/livewire-calendar:*
It'll then install for you.
Just remember to undo that and use the original when @asantibanez gets around to accepting the pull request.

In the terminal I had to use.

composer require asantibanez/livewire-calendar:dev-master

@Aristide-Dev
Copy link

i want to laravel 10 support. who can help me please ?

@lrljoe
Copy link

lrljoe commented Aug 26, 2023

i want to laravel 10 support. who can help me please ?

Run:

composer require asantibanez/livewire-calendar:dev-master

This should give you L10 support.

@MahmoudBakheett
Copy link

MahmoudBakheett commented Dec 9, 2023

same issue ( i tried the solutions above ) laravel 10.35.0

@EddieFreedome
Copy link

EddieFreedome commented Mar 5, 2024

same issue ( i tried the solutions above ) laravel 10.35.0

for me worked updating the composer.json as noted from shanerbaner82 (in his merge pull request 1d2c050):

"php": "^7.2|^8.0|^8.1|^8.2", "illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0",

Then i run : composer require asantibanez/livewire-calendar -W

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests