PHP code example of upstash / vector-laravel
1. Go to this page and download the library: Download upstash/vector-laravel 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/ */
upstash / vector-laravel example snippets
return [
'default' => env('UPSTASH_VECTOR_CONNECTION', 'default'),
'connections' => [
'default' => [
'url' => env('UPSTASH_VECTOR_REST_URL'),
'token' => env('UPSTASH_VECTOR_REST_TOKEN'),
],
],
];
use Upstash\Vector\Laravel\Facades\Vector;
$info = Vector::getInfo();