Skip to content

Commit

Permalink
fix: Send mail request handling
Browse files Browse the repository at this point in the history
  • Loading branch information
zekiahmetbayar committed Nov 14, 2023
1 parent 6a2e723 commit 35e66cc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/Http/Controllers/Extension/Sandbox/InternalController.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,11 @@ public function sendMail()
if (! (bool) env('MAIL_ENABLED', false)) return;

$sendTo = [];
if (! is_array(request('to'))) {
$sendTo[] = request('to');
$to = json_decode(request('to'));
if (! is_array($to)) {
$sendTo[] = $to;
} else {
$sendTo = request('to');
$sendTo = $to;
}

$template = ExtensionMail::class;
Expand Down

0 comments on commit 35e66cc

Please sign in to comment.