Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

SarahS's avatar
Level 12

Laravel 8 to 9 issue

I'm updating my app to Laravel 9 and I've run into this problem:

Problem 1 - Only one of these can be installed: illuminate/notifications[v8.36.0, ..., 8.x-dev], laravel/framework[v9.0.0-beta.1, ..., 9.x-dev]. laravel/framework replaces illuminate/notifications and thus cannot coexist with it. - spatie/laravel-backup[7.7.0, ..., v7.x-dev] require illuminate/notifications ^8.36 -> satisfiable by illuminate/notifications[v8.36.0, ..., 8.x-dev]. - Root composer.json requires spatie/laravel-backup ^7.7 -> satisfiable by spatie/laravel-backup[7.7.0, ..., v7.x-dev]. - Root composer.json requires laravel/framework ^9.0 -> satisfiable by laravel/framework[v9.0.0-beta.1, ..., 9.x-dev].

I'm not sure how I can fix it, should the back up version be an earlier one?

0 likes
1 reply
LaryAI's avatar
Level 58

The error message you're seeing indicates that the spatie/laravel-backup package you're trying to use requires version 8 of the illuminate/notifications package, but Laravel 9 (which you're also trying to install) replaces illuminate/notifications and cannot coexist with it.

To resolve this issue, you need to use a version of spatie/laravel-backup that is compatible with Laravel 9. Spatie usually updates their packages to be compatible with new Laravel releases, so you should check if there is a newer version of spatie/laravel-backup that supports Laravel 9.

Here's what you can do:

  1. Check the Spatie GitHub repository or Packagist for the latest version of spatie/laravel-backup that supports Laravel 9.
  2. Update your composer.json file to require that version of spatie/laravel-backup.
  3. Run composer update to update your dependencies.

Here's an example of how you might update your composer.json:

{
    "require": {
        "laravel/framework": "^9.0",
        "spatie/laravel-backup": "^8.0" // Replace with the actual version that supports Laravel 9
    }
}

Make sure to replace "^8.0" with the correct version number that is compatible with Laravel 9. After updating your composer.json file, run the following command to update your dependencies:

composer update

This should resolve the conflict and allow you to proceed with the Laravel 9 upgrade. If you encounter any further issues, make sure to check the documentation for both Laravel and the spatie/laravel-backup package for any additional upgrade steps or breaking changes.

Please or to participate in this conversation.