Skip to content

Commit

Permalink
Some more cleanup. Start template.
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcyLina committed Jul 3, 2024
1 parent 037b891 commit 3c13a1e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 19 deletions.
2 changes: 1 addition & 1 deletion app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ protected function schedule(Schedule $schedule): void
$schedule->command('resource:expired -N')
->weeklyOn(Schedule::FRIDAY, '06:00');

$schedule->command('send:send-resource-digest-email')->monthlyOn(1, '00:00');
$schedule->command('send:send-resource-digest-email')->monthly();
}

/**
Expand Down
2 changes: 1 addition & 1 deletion app/Mail/ResourceDigestEmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function envelope()
public function content()
{
return new Content(
view: 'emails.resource-digest',
markdown: 'emails.resource-digest',
with: ['data' => $this->data],
);
}
Expand Down
13 changes: 8 additions & 5 deletions config/logging.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,20 @@
'channels' => [
'stack' => [
'driver' => 'stack',
'channels' => ['single'],
'channels' => ['daily', 'bugsnag'],
'ignore_exceptions' => false,
],

'bugsnag' => [
'driver' => 'bugsnag',
],

'single' => [
'driver' => 'single',
'path' => storage_path('logs/laravel.log'),
'level' => 'debug',
],
'bugsnag' => [
'driver' => 'bugsnag',
'level' => env('LOG_LEVEL', 'debug'),
],

'daily' => [
'driver' => 'daily',
'path' => storage_path('logs/laravel.log'),
Expand Down
18 changes: 6 additions & 12 deletions resources/views/emails/resource-digest.blade.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
<!DOCTYPE html>
<html>
@component('mail::message')
# hello this is email

<head>
<title>Monthly Resource Digest</title>
</head>

<body>
<h1>Monthly Resource Digest</h1>
<p>Here are the resources created in the last 30 days:</p>
</body>

</html>
@component('mail::panel')
[some markdown](https://www.cats.com)
@endcomponent
@endcomponent

0 comments on commit 3c13a1e

Please sign in to comment.