PHP code example of itvisionsy / laravel-elastic-session
1. Go to this page and download the library: Download itvisionsy/laravel-elastic-session library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
itvisionsy / laravel-elastic-session example snippets
'providers' => [
//...
ItvisionSy\LaravelElasticSessionDriver\ElasticSessionServiceProvider::class,
//...
]
"driver" => "elastic",
"elastic" => [
"url" => "http://localhost:9200/",
"index" => "laravel-es-sessions",
"type" => "session"
],
"lifetime" => 30
\ItvisionSy\LaravelElasticSessionDriver\ElasticSessionStore::putMapping();