Astrotomic / laravel-translatable

A Laravel package for multilingual models
https://docs.astrotomic.info/laravel-translatable/
MIT License
1.24k stars 156 forks source link

Batch of changes for package; Add Laravel 11 support #395

Closed Oleksandr-Moik closed 5 months ago

Oleksandr-Moik commented 6 months ago

Hi! First of all - sorry for such a big and dirty request)

Follows and inspired by #387 and additionally closes some issues:


Want to use this package for Laravel 11 - see comment


I found comment about "removing old versions" - is it still valid?

Oleksandr-Moik commented 6 months ago

To see how test suites works - see here https://github.com/Oleksandr-Moik/laravel-translatable/pull/1

Oleksandr-Moik commented 6 months ago

Any suggestions and changes are welcome)

redalpha01 commented 6 months ago

Looking forward to having this merged.

Oleksandr-Moik commented 6 months ago

Hi, @Gummibeer. Can you review these changes, please?

Oleksandr-Moik commented 6 months ago

Hi! If you want to test or if you need to use this package for Laravel 11, I decided to add a release tag v11.13 on my fork.

To use it, temporarily add this fork to the repositories property of your composer.json:

    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/Oleksandr-Moik/laravel-translatable.git"
        }
    ],

and then run the following command to install the package:

composer require "astrotomic/laravel-translatable:^11.13"

I will keep this tag for the future but do not forget to remove it when the main package receives support for the new Laravel version. After that, I plan to remove the tag in a few weeks so that your project depends on the official source and not my fork.

So if you plan to use it - subscribe on this pull request so I can notify you via GitHub.

Thanks for understanding!