Emails/notifications not sending #675 (#686)

* Add test call to test notification #675

* Fix queue driver with emails not sending; formatting #675
This commit is contained in:
Nabeel S
2020-05-09 11:31:25 -04:00
committed by GitHub
parent 69fb5a537e
commit 1054d53826
14 changed files with 37 additions and 10 deletions

View File

@@ -7,6 +7,7 @@ use App\Models\Acars;
use App\Models\Airline;
use App\Models\Pirep;
use App\Models\User;
use App\Notifications\Messages\UserRegistered;
use App\Repositories\AcarsRepository;
use App\Services\AirportService;
use App\Services\AwardService;
@@ -60,6 +61,7 @@ class DevCommands extends Command
'metar' => 'getMetar',
'recalculate-stats' => 'recalculateStats',
'reset-install' => 'resetInstall',
'new-user-email' => 'newUserEmail',
'xml-to-yaml' => 'xmlToYaml',
];
@@ -290,6 +292,16 @@ class DevCommands extends Command
$this->info('Done!');
}
/**
* Test sending a user a registered email
*/
protected function newUserEmail()
{
$user_id = $this->argument('param');
$user = User::find($user_id);
$user->notify(new UserRegistered($user));
}
public function liveFlights(): void
{
$acarsRepo = app(AcarsRepository::class);