Try using neo4j with Laravel ① Settings

Sep 10, 2020 PHP Laravel neo4j

① Setting

・ Laravel version 5.6 ・ NeoEloquent version 1.4.6

1) Create a Laravel project by specifying the version

composer create-project "laravel / laravel = 5.6. *" [Project name]

2) Vinelab / Neo Eloquent settings

composer require vinelab / neoeloquent 1.4.6

3) neo4j database usage settings

Added neo4j settings to config / database.php

    'default' => env ('DB_CONNECTION','neo4j'),
   'connections' => [
       ~
       'neo4j' => [
            'driver' =>' neo4j',
            'host' => env ('DB_HOST','hostname'),
            'port' => env ('DB_PORT', '7474'),
            'username' => env ('DB_USERNAME', "neo4j username"),
            'password' => env ('DB_PASSWORD', "neo4j password")
        ],,

Change .env settings

DB_CONNECTION = neo4j
DB_HOST = host name
DB_PORT = 7474
DB_USERNAME = neo4j username
DB_PASSWORD = neo4j password

reference NeoEloquent