Files
mtdb_movie/app/Console/Commands/UpdateNewsFromRemote.php
maher 703f50a09d
Some checks failed
Build / run (push) Has been cancelled
first commit
2025-10-29 11:42:25 +01:00

21 lines
446 B
PHP
Executable File

<?php
namespace App\Console\Commands;
use App\Actions\News\ImportNewsFromRemoteProvider;
use Illuminate\Console\Command;
class UpdateNewsFromRemote extends Command
{
protected $signature = 'news:update';
protected $description = 'Update news from currently selected 3rd party site.';
public function handle(): void
{
app(ImportNewsFromRemoteProvider::class)->execute();
$this->info('News updated.');
}
}