mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-02-15 22:53:31 +00:00
154 - Sending Promoters an Invitation Email
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<?php
|
||||
|
||||
use App\Invitation;
|
||||
use App\Mail\InvitationEmail;
|
||||
use App\Facades\InvitationCode;
|
||||
use Illuminate\Foundation\Inspiring;
|
||||
|
||||
@@ -16,8 +17,8 @@ use Illuminate\Foundation\Inspiring;
|
||||
*/
|
||||
|
||||
Artisan::command('invite-promoter {email}', function ($email) {
|
||||
$invitation = Invitation::create([
|
||||
Invitation::create([
|
||||
'email' => $email,
|
||||
'code' => InvitationCode::generate(),
|
||||
]);
|
||||
])->send();
|
||||
})->describe('Invite a new promoter to create an account.');
|
||||
|
||||
Reference in New Issue
Block a user