20 lines
379 B
PHP
20 lines
379 B
PHP
<?php
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
use App\Jobs\ArticleDiscoveryJob;
|
|
use Illuminate\Console\Command;
|
|
|
|
class FetchNewArticlesCommand extends Command
|
|
{
|
|
protected $signature = 'article:refresh';
|
|
|
|
protected $description = 'Fetches latest articles';
|
|
|
|
public function handle(): int
|
|
{
|
|
ArticleDiscoveryJob::dispatch();
|
|
|
|
return self::SUCCESS;
|
|
}
|
|
}
|