Files
Global-Jain/app/Console/Commands/SendMemberIDNotification.php
2025-11-05 10:37:10 +05:30

46 lines
865 B
PHP

<?php
namespace App\Console\Commands;
use App\Jobs\SendGenerateMemberID;
use Illuminate\Console\Command;
class SendMemberIDNotification extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'generate:memberid';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Generate your member ID';
/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}
/**
* Execute the console command.
*
* @return int
*/
public function handle()
{
dispatch(new SendGenerateMemberID());
$this->info('Notification generate memberID dispatched successfully!');
return 0;
}
}