| Server IP : 13.235.167.51 / Your IP : 216.73.217.116 Web Server : Apache System : Linux machinox-server 6.17.0-1013-aws #13~24.04.1-Ubuntu SMP Fri Apr 24 21:36:58 UTC 2026 aarch64 User : root ( 0) PHP Version : 8.2.29 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/app.machinox.in/routes/ |
Upload File : |
<?php
use Illuminate\Foundation\Inspiring;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Schedule;
use function Laravel\Prompts\{info, error};
Artisan::command('inspire', function () {
$this->comment(Inspiring::quote());
})->purpose('Display an inspiring quote');
// Schedule::command('machinox:handle-send-admin-notification')->everyMinute();
// Schedule::command('subscriptions:check-expired')->daily();
Schedule::command('subscriptions:check-expired')
->daily()
->between('00:00', '01:00')
->timezone('Asia/Kolkata')
->onSuccess(function () {
info('Subscription updated successfully.');
})
->onFailure(function () {
info('Failed to update subscriptions.');
});
Schedule::command('boost:check-expired')
->daily()
->between('00:00', '01:00')
->timezone('Asia/Kolkata')
->onSuccess(fn() => Log::info('✅ Boost updated successfully.'))
->onFailure(fn() => Log::error('❌ Failed to update boost.'));
Schedule::command('machinox:handle-send-admin-notification')
->everyMinute()
->timezone('Asia/Kolkata')
->onSuccess(fn() => Log::info('✅ Admin notification sent successfully.'))
->onFailure(fn() => Log::error('❌ Failed to send admin notification.'));
Schedule::command('boost:notify')
->everyThreeMinutes()
->withoutOverlapping()
->timezone('Asia/Kolkata')
->onSuccess(fn() => Log::info('✅ Boost notification sent successfully.'))
->onFailure(fn() => Log::error('❌ Failed to send boost notification.'));
Schedule::command('expire:seeker-subscription')
->dailyAt('00:05')
->withoutOverlapping()
->timezone('Asia/Kolkata')
->onSuccess(fn() => Log::info('✅ User seeker subscription expired successfully.'))
->onFailure(fn() => Log::error('❌ Failed to expire user seeker subscriptions.'));
Schedule::command('expire:banners')
->dailyAt('00:05')
->withoutOverlapping()
->timezone('Asia/Kolkata')
->onSuccess(fn() => Log::info('✅ Banners expired successfully.'))
->onFailure(fn() => Log::error('❌ Failed to expire banners.'));