20
app/Console/Commands/UpdateNewsFromRemote.php
Executable file
20
app/Console/Commands/UpdateNewsFromRemote.php
Executable file
@@ -0,0 +1,20 @@
|
||||
<?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.');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user