<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
interwal-net / filament-visual-cron-builder example snippets
use InterwalNet\CronBuilder\CronBuilder;
CronBuilder::make('schedule')
->showNextRun() // toggle the next-run preview (default: from config)
->layout('tabs') // 'grid' (default) or 'tabs'; default from config
->showTabTokens() // tabs only: show each position's cron token in its tab
->
CronBuilder::make('schedule')
->live(debounce: 500) // or ->live(onBlur: true), ->live(condition: false)
->afterStateUpdated(function (CronBuilder $component) {
// While editing, the state is the 5-column array; use the helper to
// get the composed cron string:
$cron = $component->getComposedExpression();
});
use InterwalNet\CronBuilder\Rules\ValidCronExpression;
$request->validate([
'schedule' => ['