PHP code example of friendsofhyperf / telescope-elasticsearch
1. Go to this page and download the library: Download friendsofhyperf/telescope-elasticsearch 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/ */
friendsofhyperf / telescope-elasticsearch example snippets
// config/autoload/telescope.php
return [
'driver' => 'elasticsearch',
'storage' => [
'elasticsearch' => [
'driver' => FriendsOfHyperf\TelescopeElasticsearch\Storage\ElasticsearchEntriesRepository::class,
'index' => 'telescope_entries',
'hosts' => ['127.0.0.1'],
'username' => null,
'password' => null,
],
],
];
shell
php bin/hyperf.php vendor:publish friendsofhyperf/telescope --id=config