use Illuminate\Support\Facades\Mail;
use JoliCode\Slack\ClientFactory;
use League\CommonMark\CommonMarkConverter;
+use League\CommonMark\Exception\CommonMarkException;
class DownloadBase extends Base
{
return Slack::send($this->getUser()->slack, $subject, $text, $actions);
}
+ /**
+ * @throws CommonMarkException
+ */
public function sendEmail($subject, $text, $actions = [])
{
$body = '';
$mail = new DeferredDownload();
$mail->to($this->user->email);
$mail->subject($subject);
- $mail->html($converter->convertToHtml($body));
+ $mail->html($converter->convert($body)->getContent());
Mail::send($mail);
}
},
{
"name": "spatie/image",
- "version": "2.2.5",
+ "version": "2.2.6",
"source": {
"type": "git",
"url": "https://github.com/spatie/image.git",
- "reference": "c78e2dbdbced9c1673800e5b813cc8a8127bc5ac"
+ "reference": "f72ca52acd77ca03b7843a0f86e2411ce90aecfc"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/spatie/image/zipball/c78e2dbdbced9c1673800e5b813cc8a8127bc5ac",
- "reference": "c78e2dbdbced9c1673800e5b813cc8a8127bc5ac",
+ "url": "https://api.github.com/repos/spatie/image/zipball/f72ca52acd77ca03b7843a0f86e2411ce90aecfc",
+ "reference": "f72ca52acd77ca03b7843a0f86e2411ce90aecfc",
"shasum": ""
},
"require": {
"spatie"
],
"support": {
- "source": "https://github.com/spatie/image/tree/2.2.5"
+ "source": "https://github.com/spatie/image/tree/2.2.6"
},
"funding": [
{
"type": "github"
}
],
- "time": "2023-01-19T17:06:04+00:00"
+ "time": "2023-05-06T10:20:33+00:00"
},
{
"name": "spatie/image-optimizer",
},
{
"name": "spatie/laravel-translatable",
- "version": "6.5.0",
+ "version": "6.5.1",
"source": {
"type": "git",
"url": "https://github.com/spatie/laravel-translatable.git",
- "reference": "732e46b8c664a6da6d5d14751185c1844e2b5bc1"
+ "reference": "b8f102492f816608d832cfe9e420da6a856312cf"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/spatie/laravel-translatable/zipball/732e46b8c664a6da6d5d14751185c1844e2b5bc1",
- "reference": "732e46b8c664a6da6d5d14751185c1844e2b5bc1",
+ "url": "https://api.github.com/repos/spatie/laravel-translatable/zipball/b8f102492f816608d832cfe9e420da6a856312cf",
+ "reference": "b8f102492f816608d832cfe9e420da6a856312cf",
"shasum": ""
},
"require": {
],
"support": {
"issues": "https://github.com/spatie/laravel-translatable/issues",
- "source": "https://github.com/spatie/laravel-translatable/tree/6.5.0"
+ "source": "https://github.com/spatie/laravel-translatable/tree/6.5.1"
},
"funding": [
{
"type": "github"
}
],
- "time": "2023-04-20T08:54:14+00:00"
+ "time": "2023-05-06T10:22:13+00:00"
},
{
"name": "spatie/pdf-to-image",
},
{
"name": "swayok/alternative-laravel-cache",
- "version": "6.1.10",
+ "version": "6.1.11",
"source": {
"type": "git",
"url": "https://github.com/swayok/alternative-laravel-cache.git",
- "reference": "31df4d2e3fa9b44b5b3a063f34b0e7bd4abb4236"
+ "reference": "ad4b02e2cce48c4eea9d9bd5fb298904c2fd60e8"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/swayok/alternative-laravel-cache/zipball/31df4d2e3fa9b44b5b3a063f34b0e7bd4abb4236",
- "reference": "31df4d2e3fa9b44b5b3a063f34b0e7bd4abb4236",
+ "url": "https://api.github.com/repos/swayok/alternative-laravel-cache/zipball/ad4b02e2cce48c4eea9d9bd5fb298904c2fd60e8",
+ "reference": "ad4b02e2cce48c4eea9d9bd5fb298904c2fd60e8",
"shasum": ""
},
"require": {
],
"support": {
"issues": "https://github.com/swayok/alternative-laravel-cache/issues",
- "source": "https://github.com/swayok/alternative-laravel-cache/tree/6.1.10"
+ "source": "https://github.com/swayok/alternative-laravel-cache/tree/6.1.11"
},
- "time": "2023-03-16T10:54:40+00:00"
+ "time": "2023-05-08T13:23:39+00:00"
},
{
"name": "symfony/cache",
},
{
"name": "sebastian/diff",
- "version": "4.0.4",
+ "version": "4.0.5",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/diff.git",
- "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d"
+ "reference": "74be17022044ebaaecfdf0c5cd504fc9cd5a7131"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/3461e3fccc7cfdfc2720be910d3bd73c69be590d",
- "reference": "3461e3fccc7cfdfc2720be910d3bd73c69be590d",
+ "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/74be17022044ebaaecfdf0c5cd504fc9cd5a7131",
+ "reference": "74be17022044ebaaecfdf0c5cd504fc9cd5a7131",
"shasum": ""
},
"require": {
],
"support": {
"issues": "https://github.com/sebastianbergmann/diff/issues",
- "source": "https://github.com/sebastianbergmann/diff/tree/4.0.4"
+ "source": "https://github.com/sebastianbergmann/diff/tree/4.0.5"
},
"funding": [
{
"type": "github"
}
],
- "time": "2020-10-26T13:10:38+00:00"
+ "time": "2023-05-07T05:35:17+00:00"
},
{
"name": "sebastian/environment",
"ext-zlib": "*"
},
"platform-dev": [],
- "plugin-api-version": "2.1.0"
+ "plugin-api-version": "2.3.0"
}