algolia / scout-extended

Scout Extended: The Full Power of Algolia in Laravel
https://www.algolia.com/doc/framework-integration/laravel/getting-started/introduction-to-scout-extended/
MIT License
400 stars 86 forks source link

Add support for Laravel 9 #302

Closed eminos closed 2 years ago

kabacs commented 2 years ago

@eminos

Was having also a problem with scout extended when upgrading to Laravel 9, did the following to resolve:

  1. Remove algolia/scout-extended from composer.json
  2. edit laravel/framework to ^9.0
  3. edit nunomaduro/collision to ^6.0
  4. replace facade/ignition with "spatie/laravel-ignition": "^1.0"
  5. execute "composer update"
  6. execute "composer require algolia/scout-extended"

In my case I also had also to remove fideloper/proxy from composer.json

DevinCodes commented 2 years ago

What composer errors did you both get? When trying to install Scout Extended into a new Laravel 9 project I have no issues (v2 of Scout Extended is supposed to work with Laravel 9).

Thank you in advance!

kabacs commented 2 years ago

@DevinCodes

After just altering composer.json for Laravel upgrade (points 2-4), and then issuing the composer update command, I have the following output:

`Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages.

Problem 1

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.`

DevinCodes commented 2 years ago

You can pin Scout Extended to ^2.0, that should resolve your issue (or composer require "algolia/scout-extended:^2.0")

kabacs commented 2 years ago

You can pin Scout Extended to ^2.0, that should resolve your issue (or composer require "algolia/scout-extended:^2.0")

This solved the upgrade, it went without errors.

Thx @DevinCodes

DevinCodes commented 2 years ago

Happy coding! 😄