create service and command for sending reports
This commit is contained in:
32
app/Console/Commands/SendPeopleMessageStatsCommand.php
Normal file
32
app/Console/Commands/SendPeopleMessageStatsCommand.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use App\Services\Commands\SendPeopleMessageStatsService;
|
||||
use Illuminate\Console\Command;
|
||||
|
||||
class SendPeopleMessageStatsCommand extends Command
|
||||
{
|
||||
/**
|
||||
* The name and signature of the console command.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $signature = 'report:send-people-message-stats';
|
||||
|
||||
/**
|
||||
* The console command description.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $description = 'gather all people message stats report and send them to the center';
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*/
|
||||
public function handle(SendPeopleMessageStatsService $service): void
|
||||
{
|
||||
$service->execute();
|
||||
$this->info('Done!');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user