الملفات
yemen-currency/routes/console.php
Watheq Alshowaiter 7f633d9855 feat(docker): add laravel sail configuration
- Added docker-compose.yml with PHP 8.4 container
- Configured app to run on port 8080 via APP_PORT
- Updated storage and bootstrap permissions for Docker
- Removed MySQL service to use SQLite database
2025-10-15 15:20:43 +03:00

22 أسطر
816 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!');
// }
// );
});