Vinelab / NeoEloquent

The Neo4j OGM for Laravel
MIT License
633 stars 197 forks source link

Support for laravel v10 #371

Open amirsahra opened 1 year ago

amirsahra commented 1 year ago

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

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

kvailas commented 1 year ago

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

spham commented 1 year ago

mee too

drmmr763 commented 11 months ago

Me too

myounis97 commented 11 months ago

Me too

michjea commented 11 months ago

Same here

vahidei commented 10 months ago

Same

jrdeavila commented 10 months ago

Me too

jhalmu commented 10 months ago

Here too

gabrieldesousah commented 9 months ago

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 commented 8 months ago

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 commented 8 months ago

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

Tachii commented 8 months ago

I have this draft PR to support php8^ & Laravel 10. https://github.com/Vinelab/NeoEloquent/pull/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"
}