الملفات
yemen-currency/routes/console.php
Watheq Alshowaiter 75790377c4 chore: remove github action workflow and improve logging
- Removed unused Claude GitHub Action workflow file
- Changed scheduled command log to use daily log files (Y-m-d format)
- Fixed code formatting in CurrencyService exception handling
2025-10-14 17:17:07 +03:00

21 أسطر
828 B
PHP

<?php
use Illuminate\Support\Facades\Schedule;
Schedule::command('currency:fetch --today')
->everySixHours()
->appendOutputTo(storage_path('logs/' . today()->format('Y-m-d') . '.log'))
->onFailure(function () {
// TODO: set the correct sender email
// TODO: set the correct recipient email
// \Illuminate\Support\Facades\Mail::raw(
// "Currency fetching failed!\n\nCheck the page: https://boqash.com/price-currency\nAnd review the logs for more details.",
// function (\Illuminate\Mail\Message $message) {
// $message
// ->from(config('mail.from.address'))
// ->to(config('mail.admin.address'))
// ->subject('Currency Fetching Failed!');
// }
// );
});