livewire-calendar icon indicating copy to clipboard operation
livewire-calendar copied to clipboard

Could not install it on Laravel 9

Open gldtn opened this issue 2 years ago • 31 comments

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 avatar Apr 10 '22 02:04 gldtn

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?

gldtn avatar Apr 13 '22 12:04 gldtn

Same issue here

mark1828 avatar Apr 15 '22 14:04 mark1828

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.

kaizerenrique avatar Apr 16 '22 11:04 kaizerenrique

Same issue here :(

NeverioDev avatar Apr 20 '22 09:04 NeverioDev

Same issue. Would love to us this!

clillefield avatar Apr 21 '22 01:04 clillefield

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.

gamorvi avatar May 06 '22 11:05 gamorvi

When will this package be upgraded to support L9?

ekandreas avatar May 30 '22 12:05 ekandreas

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.

lrljoe avatar Jun 01 '22 23:06 lrljoe

How do I install a forked repo in L9?

clillefield avatar Jun 07 '22 23:06 clillefield

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.

lrljoe avatar Jun 08 '22 14:06 lrljoe

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

clillefield avatar Jun 08 '22 17:06 clillefield

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

clillefield avatar Jun 11 '22 22:06 clillefield

Same issue. I Would love to use this!

@asantibanez @naszybko @barryvdh

abbasmashaddy72 avatar Jul 02 '22 11:07 abbasmashaddy72

@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

da-sie avatar Jul 02 '22 11:07 da-sie

Thanks Installed Without any issues

abbasmashaddy72 avatar Jul 02 '22 18:07 abbasmashaddy72

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,
    ],


kurucu avatar Aug 01 '22 06:08 kurucu

same issue here

rabol avatar Nov 16 '22 07:11 rabol

@rabol

You follow the above instruction

https://github.com/asantibanez/livewire-calendar/issues/32#issuecomment-1172882028

abbasmashaddy72 avatar Nov 16 '22 09:11 abbasmashaddy72

Is this package abandoned?

kurucu avatar Nov 16 '22 09:11 kurucu

No

But Currently Not Yet Compatible with Laravel 9

You follow the below instruction You Can Install without any issues

@kurucu

https://github.com/asantibanez/livewire-calendar/issues/32#issuecomment-1172882028

abbasmashaddy72 avatar Nov 16 '22 10:11 abbasmashaddy72

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.

kurucu avatar Nov 16 '22 11:11 kurucu

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

rabol avatar Nov 16 '22 17:11 rabol

You are right @rabol

abbasmashaddy72 avatar Nov 16 '22 17:11 abbasmashaddy72

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

rabol avatar Nov 16 '22 18:11 rabol

Hi Steen, will submit some PRs for some of the features I've added in later in the week.

Joe

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Steen Rabol @.> Sent: Wednesday, November 16, 2022 10:51:04 PM To: asantibanez/livewire-calendar @.> Cc: Joe McElwee @.>; Mention @.> Subject: Re: [asantibanez/livewire-calendar] Could not install it on Laravel 9 (Issue #32)

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

— Reply to this email directly, view it on GitHubhttps://github.com/asantibanez/livewire-calendar/issues/32#issuecomment-1317511754, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZATUOXVIWGYXUNXPUIAEW3WIUUJRANCNFSM5TADHBTQ. You are receiving this because you were mentioned.Message ID: @.***>

lrljoe avatar Nov 16 '22 21:11 lrljoe

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

Great News

abbasmashaddy72 avatar Nov 19 '22 06:11 abbasmashaddy72

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

grafxflow avatar Feb 28 '23 09:02 grafxflow

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

jordivela007 avatar May 17 '23 10:05 jordivela007

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

Aristide-Dev avatar Aug 23 '23 13:08 Aristide-Dev

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.

lrljoe avatar Aug 26 '23 12:08 lrljoe