Install with composer
composer install
copy and edit .env
cp .env.example .env
set FEATURE_SEND_EMAILS
to true to if you want your application to send emails notifying you of dns updates
<?php
// config/features.php
return [
'send-emails' => env('FEATURE_SEND_EMAILS', false),
];
<?php
// config/cloudflare-dns.php
return [
// Here you can define the schedule for checking if dns records should be updated. The default is every 8 minutes ('*/8 * * * *').
// see https://laravel.com/docs/8.x/scheduling#schedule-frequency-options for more information
'schedule' => '*/8 * * * *',
];
Create the following cron job on your server to run the artisan scheduler:
* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1
To check and (if necessary) update dns records for example, every minute, set config('cloudflare-dns.schedule')
to * * * * *
.
<?php
// config/cloudflare-dns.php
return [
'schedule' => '* * * * *', // run every minute
];