Skip to content

Commit

Permalink
Fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
ajifatur authored Jun 10, 2021
1 parent c3fe844 commit 2d0a48f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ protected function schedule(Schedule $schedule)
if(count($users)>0){
foreach($users as $user){
// Run sending email task
$schedule->call(function() use ($user, $receivers, $data){
$schedule->call(function() use ($user, $receivers, $cs, $data){
// Send email
Mail::to($user->email)->send(new MessageMail($cs->email, $user, $data->subject, htmlentities($data->content)));
Mail::to($user->email)->send(new MessageMail($cs->email, $user, $data->subject, html_entity_decode($data->content)));

// Push receiver
array_push($receivers, $user->id_user);
Expand Down

0 comments on commit 2d0a48f

Please sign in to comment.