api-resources icon indicating copy to clipboard operation
api-resources copied to clipboard

Laravel 11.x Compatibility

Open laravel-shift opened this issue 1 year ago • 4 comments

This is an automated pull request from Shift to update your package code and dependencies to be compatible with Laravel 11.x.

Before merging, you need to:

  • Checkout the l11-compatibility branch
  • Review all comments for additional changes
  • Thoroughly test your package

If you do find an issue, please report it by commenting on this PR to help improve future automation.

laravel-shift avatar Mar 02 '24 07:03 laravel-shift

:warning: The latest version of Laravel has a dependency for phpunit/phpunit of ^10.5. If you would like to also upgrade your tests, you may run the PHPUnit 10 Shift for free.

laravel-shift avatar Mar 02 '24 07:03 laravel-shift

:warning: Shift detected GitHub Actions which run jobs using a version matrix. Shift attempted to update your configuration for Laravel 11. However, you should review these changes to ensure the desired combination of versions are built for your package.

laravel-shift avatar Mar 02 '24 07:03 laravel-shift

:alembic: Using this package? If you would like to help test these changes or believe them to be compatible, you may update your project to reference this branch.

To do so, temporarily add Shift's fork to the repositories property of your composer.json:

{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/laravel-shift/api-resources.git"
        }
    ]
}

Then update your dependency constraint to reference this branch:

{
    "require": {
        "juampi92/api-resources": "dev-l11-compatibility",
    }
}

Finally, run: composer update

laravel-shift avatar Mar 02 '24 07:03 laravel-shift

@juampi92 another year came by, and here I am again lol

I'm currently preparing the Laravel 11 upgrade here and would be great to know if this will be merged any time soon. If that's not possible, I'm totally okay with using the Shift branch

Cheers! :)

devnicolas1 avatar Apr 15 '24 14:04 devnicolas1

If it interests anyone: we officially decided to move on from using this package downloaded directly from GitHub, and made it an internal repository where we can update and guarantee compatibility with upcoming Laravel versions.

If this branch is ever merged and Laravel 12 support is officially added, we are totally okay on going back to use this GitHub version and helping reviewing the breaking changes that might come with each Laravel version every year.

devnicolas1 avatar Apr 22 '25 19:04 devnicolas1