//Задача для сервера UBUNTU 18.04
$schedule->exec("/usr/bin/curl -s https://www.site.net/parser1")
->everyFiveMinutes()
->withoutOverlapping();
//Задача для локального сервера OpenServer
$schedule->exec("D:\......\OSPanel\modules\wget\bin\wget.exe -a --no-cache http://site/parser1")
->everyFiveMinutes()
->withoutOverlapping();
function addlog($name_file, $log_text)
{
$storage_path = storage_path();
$file_log = $storage_path.'/logs/'.$name_file.".log";
$time = date('Y.m.d H:i:s');
$ip = $_SERVER['REMOTE_ADDR'];
$log = "{$time}: {$ip}: {$log_text} \n";
file_put_contents($file_log, $log, FILE_APPEND);
return true;
}
<?php