- Create
config/recaptcha.php
configuration file.<?php return [ 'site_key' => env('RECAPTCHA_SITE_KEY', null), 'secret_key' => env('RECAPTCHA_SECRET_KEY', null), 'theme' => env('RECAPTCHA_THEME', 'light'), ];
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let lastRun = 0; | |
function runTask() { | |
// Insert code to run on schedule | |
console.log('Your task has been executed!'); | |
} | |
function checkSchedule() { | |
const hour = new Date().getHours(); | |
const minute = new Date().getMinutes(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function generateLottoNumbers(count, maxNumber) { | |
let numbers = []; | |
let draw = []; | |
for (let i = 1; i <= maxNumber; i++) { | |
numbers.push(i); | |
} | |
for (let i = 0; i < count; i++) { | |
let drawnNumber = numbers.splice(Math.floor(Math.random() * numbers.length), 1)[0]; | |
draw.push(drawnNumber); | |
} |