PHP code example of chrisreedio / laravel-scout-keys
1. Go to this page and download the library: Download chrisreedio/laravel-scout-keys 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/ */
chrisreedio / laravel-scout-keys example snippets
return [
/**
* Whether to register the Scout Indexing commands for use via web.
*/
'register_commands' => false,
'key' => [
/**
* The number of minutes a search key should be valid for.
*/
'lifetime' => env('SCOUT_KEY_EXPIRATION', 60 * 12),
],
];
class User extends Authenticatable SearchUser
{
use HasFactory, HasSearchKeys;
// ...
}