Files
finance/app/Console/Kernel.php
T
Ümit Tunç f6ef9fafdc first commit
2025-01-17 21:38:08 +03:00

35 lines
803 B
PHP

<?php
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
use App\Jobs\FetchCurrencyRates;
class Kernel extends ConsoleKernel
{
/**
* Define the application's command schedule.
*
* These should be classes that implement the ShouldQueue interface.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
$schedule->job(new FetchCurrencyRates())->hourly();
}
/**
* Register the commands for your application.
*
* @return void
*/
protected function commands()
{
$this->load(__DIR__.'/Commands');
require base_path('routes/console.php');
}
}