Files
mtdb_movie/app/Console/Commands/UpdateNewsFromRemote.php
T
maher 511fad8199
Build / run (push) Has been cancelled
Initial commit
2026-05-14 13:42:10 +02: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.');
}
}