$writer->save($tmpfile);
$url = route('download_settings', ['file' => base64_encode($tmpfile)]);
- $notification = 'Cliquez sur ce lien pour télécharger l\'export des paramètres : <a href='.$url.' rel="noopener">'.$url.'</a>';
+ $notification = 'Cliquez sur ce lien pour télécharger l\'export des paramètres :';
+ $action = [
+ 'Télécharger' => $url,
+ ];
- $user->notify(new ToolboxNotification("test", $notification, [], true));
+ $user->notify(new ToolboxNotification("test", $notification, $action, true));
}
}