api code global jain
This commit is contained in:
45
app/Console/Commands/SendMemberIDNotification.php
Normal file
45
app/Console/Commands/SendMemberIDNotification.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user