Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroennoten committed Sep 22, 2016
1 parent 38ce1be commit e2bed14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Controllers/NewsletterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class NewsletterController extends Controller
public function subscribe(Request $request, MailgunInterface $mailgun)
{
$list = config('newsletter.list');
$listId = last(explode('@', $list));
$listId = head(explode('@', $list));
$mailgun->addMember($listId, $request->input('email'), '');
}
}

0 comments on commit e2bed14

Please sign in to comment.