NeoEloquent
NeoEloquent copied to clipboard
Support for laravel v10
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. `
I'm interested in having a Laravel 10 working version as well.
mee too
Me too
Me too
Same here
Same
Me too
Here too
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
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.
yep, I made run, but not work all queries.. i change a lot of files in source, but need to make something deeper
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"
}