This commit is contained in:
F4ilji
2026-03-23 10:50:31 +05:00
parent b1c4f7b054
commit 1256adba98
89 changed files with 3587 additions and 10419 deletions
+8
View File
@@ -4,6 +4,7 @@ namespace App\Ship\Kernels;
use AlxDorosenco\PortoForLaravel\Loaders\CommandsLoader;
use AlxDorosenco\PortoForLaravel\Loaders\RoutesLoader;
use App\Containers\Dashboard\Commands\FetchEmailNewsCommand;
use App\Ship\Commands\InitRoles;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as LaravelConsoleKernel;
@@ -22,10 +23,17 @@ class ConsoleKernel extends LaravelConsoleKernel
protected function schedule(Schedule $schedule)
{
$schedule->command('sitemap:generate')->dailyAt('03:00');
// Получение новостей из Email каждые 5 минут
$schedule->command(FetchEmailNewsCommand::class)
->everyFiveMinutes()
->withoutOverlapping()
->onOneServer();
}
protected $commands = [
InitRoles::class,
FetchEmailNewsCommand::class,
];
/**