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 9 ? #357

Open
imanghafoori1 opened this issue Mar 12, 2022 · 4 comments
Open

Support for laravel 9 ? #357

imanghafoori1 opened this issue Mar 12, 2022 · 4 comments

Comments

@imanghafoori1
Copy link

Is there any plans for adding support for laravel 9.x in near future?
Thanks

@SineMah
Copy link

SineMah commented Jul 31, 2022

https://github.com/SineMah/NeoEloquent/tree/laravel_9_update
Should be fine if you just need basic relations and models. Feel free to comment if anything doesnt work for you

@Binternet
Copy link

@SineMah how can I install the laravel_9_update via composer?

@SineMah
Copy link

SineMah commented Sep 4, 2022

update your config/database.php first:

return [
'connections' => [
        'neo4j' => [
            'driver' => 'neo4j',
            'host'   => 'localhost',
            'port'   => 7687,
            'username' => 'username',
            'password' => 'password',
        ],
];

example composer.json

{
    "name": "laravel/laravel",
    "type": "project",
    "description": "The Laravel Framework.",
    "keywords": ["framework", "laravel"],
    "license": "MIT",
    "require": {
        "php": "^8.0.2",
        "guzzlehttp/guzzle": "^7.2",
        "laravel/framework": "^9.19",
        "laravel/sanctum": "^3.0",
        "laravel/tinker": "^2.7"
    },
    "require-dev": {
        "fakerphp/faker": "^1.9.1",
        "laravel/pint": "^1.0",
        "laravel/sail": "^1.0.1",
        "mockery/mockery": "^1.4.4",
        "nunomaduro/collision": "^6.1",
        "phpunit/phpunit": "^9.5.10",
        "spatie/laravel-ignition": "^1.0",
        "vinelab/neoeloquent": "dev-laravel_9_update"
    },
    "autoload": {
        "psr-4": {
            "App\\": "app/",
            "Database\\Factories\\": "database/factories/",
            "Database\\Seeders\\": "database/seeders/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\\": "tests/"
        }
    },
    "scripts": {
        "post-autoload-dump": [
            "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
            "@php artisan package:discover --ansi"
        ],
        "post-update-cmd": [
            "@php artisan vendor:publish --tag=laravel-assets --ansi --force"
        ],
        "post-root-package-install": [
            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "@php artisan key:generate --ansi"
        ]
    },
    "extra": {
        "laravel": {
            "dont-discover": []
        }
    },
    "config": {
        "optimize-autoloader": true,
        "preferred-install": "dist",
        "sort-packages": true,
        "allow-plugins": {
            "pestphp/pest-plugin": true
        }
    },
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/SineMah/NeoEloquent"
        }
    ],
    "minimum-stability": "dev",
    "prefer-stable": true
}

@Binternet
Copy link

Looks OK!
Thanks @SineMah !

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

3 participants