<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kombee-technologies / smart-index-advisor example snippets
App\Providers\IndexAdvisorServiceProvider::class,
App\Providers\IndexAdvisorServiceProvider::class,
// Laravel 10 — app/Console/Kernel.php
protected function schedule(Schedule $schedule): void
{
// Automatically purge old applied/dismissed recommendations
$schedule->command('index-advisor:purge')->weekly()->sundays()->at('02:00');
// Only if report_email is configured:
$schedule->command('index-advisor:report')->weekly()->mondays()->at('08:00');
}
// Laravel 11+ — routes/console.php
use Illuminate\Support\Facades\Schedule;
// Automatically purge old applied/dismissed recommendations
Schedule::command('index-advisor:purge')->weekly()->sundays()->at('02:00');
// Only if report_email is configured:
Schedule::command('index-advisor:report')->weekly()->mondays()->at('08:00');
'table_map' => [
'LymLeadMstr' => 'lym_lead_mstrs',
'LytLoginUsr' => 'lytLoginUsr', // mixed-case tables use exact name
'CtmInfluncr' => 'ctmInfluncr',
'LymInfluncr' => 'lymInfluncr',
'LytCodeHsty' => 'lytCodeHsty',
// add more as needed ...
],