1. Go to this page and download the library: Download one23/phalcon2laravel 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/ */
one23 / phalcon2laravel example snippets
$adapter = new \One23\Phalcon2laravel\Session\Adapter\Db([
'db' => function() {
$di = \Phalcon\Di\Di::getDefault();
return $di->get('db');
}, // lize_handler
'ip' => '127.0.0.1', // User IP. Default: $request->getClientAddress()
'user' => function() {
return 1;
}, // Closure with return user id (int). Default: null
'cookie_name' => 'laravel_session', // ddress()
'user' => function() {
return 1;
}, // Closure with return user id (int). Default: null
'laravel_key' => 'abc123', //