0
votes

I am trying to install Backpack 4.1 into Laravel 8. I ran

composer require backpack/crud:"4.1.*"

But I received the following error.

Your requirements could not be resolved to an installable set of packages. backpack/crud[4.1.22, ..., 4.1.x-dev] require doctrine/dbal ^2.5 -> found doctrine/dbal[v2.5.0-BETA2, ..., 2.12.x-dev] but it conflicts with your root composer.json require (^3.0). backpack/crud[4.1.0, ..., 4.1.21] require laravel/framework ^7.0|^6.0 -> found laravel/framework[v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev] but it conflicts with your root composer.json require (^8.12). Root composer.json requires backpack/crud 4.1.* -> satisfiable by backpack/crud[4.1.0, ..., 4.1.x-dev].

I have been looking around but have not found a solution yet. Versions: Laravel 8.17, PHP 7.3.24

UPDATE I have tried installing 4.2; please see below.

Root composer.json requires backpack/crud 4.2.* -> satisfiable by backpack/crud[4.2.x-dev]. backpack/crud 4.2.x-dev requires doctrine/dbal ^2.5 -> found doctrine/dbal[v2.5.0-BETA2, ..., 2.12.x-dev] but it conflicts with your root composer.json require (^3.0).

1
Ah, I didn't see anything about 4.2 in the docs I will give it a go now. - Razor
Just tried 4.2 please see my update - Razor
I have had a look at 4.2 compser.json and it still is doctrine/dbal 2.5 so looks like its not Laravel 8 ready? - Razor
I was just thinking the same. I'm having a look now. - Razor
I have just removed doctrine (could not see witch package was using it) and installed backpack fine. Thanks. If you add this as an answer I will mark it as correct. - Razor

1 Answers

1
votes

Pending answer removal. It seems Backpack 4.1 now supports Laravel8