Laravel Scheduler alle 2 Stunden
// App\Console\Kernel::schedule()
$schedule->command('command')->cron('0 */2 * * *');
TheDutchScorpion
// App\Console\Kernel::schedule()
$schedule->command('command')->cron('0 */2 * * *');
$schedule->call(function () {
(new Studentdata())->studentDataToUpload(); //call your function
})->monthly()->everyTenMinutes();