rinvex / laravel-attributes

⚠️ [ABANDONED] Rinvex Attributable is a robust, intelligent, and integrated Entity-Attribute-Value model (EAV) implementation for Laravel Eloquent, with powerful underlying for managing entity attributes implicitly as relations with ease. It utilizes the power of Laravel Eloquent, with smooth and seamless integration.
MIT License
433 stars 104 forks source link

Laravel 9 support #172

Closed rybkinevg closed 2 years ago

rybkinevg commented 2 years ago

Hello!

I noticed that your amazing package has Laravel 9 comparability, but I am not able to install it on the fresh Laravel 9 project.

I am getting the error below:


$ composer require rinvex/laravel-attributes Using version ^6.1 for rinvex/laravel-attributes ./composer.json has been updated Running composer update rinvex/laravel-attributes Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages.

Problem 1

You can also try re-running composer require with an explicit version constraint, e.g. "composer require rinvex/laravel-attributes:*" to figure out if any version is installable, or "composer require rinvex/laravel-attributes:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.


Could you please advice, what I am missing ?

Thanks!

Omranic commented 2 years ago

Yes, that's because one of the composer dependencies is not yet compatible with Laravel v9, so you've to do one more easy step to get it working, please check this note on upgrading to Laravel v9:

https://github.com/rinvex/laravel-support#note-for-laravel-v9

Note for Laravel v9

This package requires felixkiss/uniquewith-validator dependency, which is not yet compatible with Laravel v9! However as a temporary workaround, add Laravel Shift's fork to the repositories property of your project root composer.json:

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