PHP code example of monoverse / voicebot-laravel-sync
1. Go to this page and download the library: Download monoverse/voicebot-laravel-sync 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/ */
monoverse / voicebot-laravel-sync example snippets
use Monoverse\VoicebotSync\Contracts\EntitySource;
final class ProductSource implements EntitySource { /* kind(), upserts(), deletes(), ... */ }
// config/voicebot.php
EntityKind::Product->value => ['enabled' => true, 'source' => \App\VoiceBot\ProductSource::class],
use Illuminate\Support\Facades\Schedule;
Schedule::command('voicebot:sync')->everyFifteenMinutes()->withoutOverlapping();
Schedule::command('voicebot:sync --full')->dailyAt('03:00')->withoutOverlapping();
protected function schedule(\Illuminate\Console\Scheduling\Schedule $schedule): void
{
$schedule->command('voicebot:sync')->everyFifteenMinutes()->withoutOverlapping();
$schedule->command('voicebot:sync --full')->dailyAt('03:00')->withoutOverlapping();
}