Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for laravel v10 #371

Open
amirsahra opened this issue Mar 19, 2023 · 12 comments
Open

Support for laravel v10 #371

amirsahra opened this issue Mar 19, 2023 · 12 comments

Comments

@amirsahra
Copy link

It gives this error during installation

composer require vinelab/neoeloquent:*

`./composer.json has been updated
Running composer update vinelab/neoeloquent
Loading composer repositories with package information
Info from https://repo.packagist.org: #StandWithUkraine
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1
- vinelab/neoeloquent[0.1.0, ..., 0.1.1] require illuminate/support 4.1.* -> found illuminate/support[v4.1.0, ..., v4.1.30] but these were not loaded, likely because it conflicts with another require.
- vinelab/neoeloquent[0.2.0, ..., v0.4.0, v1.0.0, ..., v1.1.1] require illuminate/support 4.2.* -> found illuminate/support[v4.2.1, ..., v4.2.17] but these were not loaded, likely because it conflicts with another require.
- vinelab/neoeloquent[v1.2.0, ..., v1.2.5] require illuminate/support 5.* -> found illuminate/support[v5.0.0, ..., v5.8.36] but these were not loaded, likely because it conflicts with another require.
- vinelab/neoeloquent[v1.2.6, ..., v1.3.0] require illuminate/support 5.1.* -> found illuminate/support[v5.1.1, ..., v5.1.41] but these were not loaded, likely because it conflicts with another require.
- vinelab/neoeloquent[1.3.1, ..., v1.3.2] require illuminate/support 5.2.* -> found illuminate/support[v5.2.0, ..., v5.2.45] but these were not loaded, likely because it conflicts with another require.
- vinelab/neoeloquent[v1.4.0, ..., v1.4.2] require illuminate/support 5.3.* -> found illuminate/support[v5.3.0, v5.3.4, v5.3.16, v5.3.23] but these were not loaded, likely because it conflicts with another require.
- vinelab/neoeloquent v1.4.3 requires illuminate/support 5.4.* -> found illuminate/support[v5.4.0, ..., v5.4.36] but these were not loaded, likely because it conflicts with another require.
- vinelab/neoeloquent[v1.4.4, ..., v1.4.5] require illuminate/support 5.5.* -> found illuminate/support[v5.5.0, ..., v5.5.44] but these were not loaded, likely because it conflicts with another require.
- vinelab/neoeloquent[v1.4.6, ..., v1.4.7] require illuminate/support 5.6.* -> found illuminate/support[v5.6.0, ..., v5.6.39] but these were not loaded, likely because it conflicts with another require.
- vinelab/neoeloquent[v1.5.0, ..., v1.5.1] require illuminate/container ~5.3.0 || ~5.4.0 || ~5.5.0 -> found illuminate/container[v5.3.0, ..., v5.5.44] but these were not loaded, likely because it conflicts with another require.
- vinelab/neoeloquent[v1.8.0, ..., v1.8.2] require illuminate/container ^8.0 -> found illuminate/container[v8.0.0, ..., v8.83.27] but these were not loaded, likely because it conflicts with another require.
- Root composer.json requires vinelab/neoeloquent * -> satisfiable by vinelab/neoeloquent[0.1.0, ..., v0.4.0, v1.0.0, ..., v1.8.2].

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

@kvailas
Copy link

kvailas commented Jun 6, 2023

I'm interested in having a Laravel 10 working version as well.

@spham
Copy link

spham commented Jun 11, 2023

mee too

@drmmr763
Copy link

Me too

1 similar comment
@myounis97
Copy link

Me too

@michjea
Copy link

michjea commented Jul 21, 2023

Same here

@vahidei
Copy link

vahidei commented Aug 13, 2023

Same

@jrdeavila
Copy link

Me too

@jhalmu
Copy link

jhalmu commented Sep 6, 2023

Here too

@gabrieldesousah
Copy link

I made some changes to run this project in Laravel v10:

First, need to change the code, I make this fork: https://github.com/gabrieldesousah/NeoEloquent/tree/v1.10.0

Then, in your composer.json, add:

"repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/gabrieldesousah/NeoEloquent"
        }
    ],

Then change the version:

"require": {
        ...
        "vinelab/neoeloquent": "^1.10"
    },

Finally, in your Laravel v10 project, install the repository with all dependencies:

composer require vinelab/neoeloquent --with-all-dependencies

@devmade
Copy link

devmade commented Oct 15, 2023

I made some changes to run this project in Laravel v10:

First, need to change the code, I make this fork: https://github.com/gabrieldesousah/NeoEloquent/tree/v1.10.0

Then, in your composer.json, add:

"repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/gabrieldesousah/NeoEloquent"
        }
    ],

Then change the version:

"require": {
        ...
        "vinelab/neoeloquent": "^1.10"
    },

Finally, in your Laravel v10 project, install the repository with all dependencies:

composer require vinelab/neoeloquent --with-all-dependencies

There seems to be more than just updating package versions in composer.json

For example, running a query throws this error:

[2023-10-15 15:47:28] local.ERROR: Vinelab\NeoEloquent\Query\Builder cannot implement Illuminate\Database\Query\Builder - it is not an interface {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Vinelab\\NeoEloquent\\Query\\Builder cannot implement Illuminate\\Database\\Query\\Builder - it is not an interface at /opt/homebrew/var/www/klug-laravel/vendor/vinelab/neoeloquent/src/Query/Builder.php:25)
[stacktrace]
#0 {main}
"}

The class it wants to implement is not an interface.
There could be more such errors, I haven't gone through it yet.
Let me know if you have found any fix/solution.

@gabrieldesousah
Copy link

yep, I made run, but not work all queries..
i change a lot of files in source, but need to make something deeper

@Tachii
Copy link

Tachii commented Nov 1, 2023

I have this draft PR to support php8^ & Laravel 10. #374
It's made from my personal fork, I invite anyone to collaborate: https://github.com/Tachii/NeoEloquent

To install and run it, add this to your composer.json:

Add at the top of the composer.json

"repositories": [
  {
    "type": "vcs",
    "url": "https://github.com/Tachii/NeoEloquent"
  }
 ]

Add this into require block

"require": {
  "vinelab/neoeloquent": "dev-php-8-laravel-10"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests