-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
38 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
<?php | ||
|
||
namespace App\Mail; | ||
declare(strict_types=1); | ||
|
||
namespace App\Mail\Account; | ||
|
||
use Illuminate\Mail\Mailable; | ||
|
||
|
@@ -10,7 +12,7 @@ public function build(): self | |
{ | ||
return $this | ||
->markdown('mail.account-created') | ||
->subject('Welcome to our platform!') | ||
->subject(__('Welcome to our platform!')) | ||
->to('[email protected]', 'User'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
<?php | ||
|
||
namespace App\Mail; | ||
declare(strict_types=1); | ||
|
||
namespace App\Mail\Account; | ||
|
||
use Illuminate\Mail\Mailable; | ||
|
||
|
@@ -10,7 +12,7 @@ public function build(): self | |
{ | ||
return $this | ||
->markdown('mail.account-deleted') | ||
->subject('Your account has been deleted') | ||
->subject(__('Your account has been deleted')) | ||
->to('[email protected]', 'User') | ||
->to('[email protected]', 'User'); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
<?php | ||
|
||
namespace App\Mail; | ||
declare(strict_types=1); | ||
|
||
namespace App\Mail\Orders; | ||
|
||
use Illuminate\Mail\Mailable; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
<?php | ||
|
||
namespace App\Mail; | ||
declare(strict_types=1); | ||
|
||
namespace App\Mail\Orders; | ||
|
||
use Illuminate\Mail\Mailable; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
@component('mail::message') | ||
# Hello user, | ||
# {{ __('Hello user') }}, | ||
|
||
Thank you for creating an account with us. | ||
|
||
Thanks,<br> | ||
{{ config('app.name') }} | ||
{{ __('Thank you for creating an account with us.') }} | ||
@endcomponent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
@component('mail::message') | ||
# Hello user, | ||
# {{ __('Hello user') }}, | ||
|
||
Your account has been deleted. We're sorry to see you go. | ||
|
||
Thanks,<br> | ||
{{ config('app.name') }} | ||
{{ __('Your account has been deleted. We\'re sorry to see you go.') }} | ||
@endcomponent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
<?php | ||
|
||
use App\Mail\AccountCreated; | ||
use App\Mail\AccountDeleted; | ||
use App\Mail\Account\AccountCreated; | ||
use App\Mail\Account\AccountDeleted; | ||
use App\Mail\Changelog; | ||
use App\Mail\OrderCreated; | ||
use App\Mail\OrderShipped; | ||
use App\Mail\Orders\OrderCreated; | ||
use App\Mail\Orders\OrderShipped; | ||
use App\Mail\WelcomeToMailbook; | ||
use Xammie\Mailbook\Facades\Mailbook; | ||
|
||
Mailbook::add(WelcomeToMailbook::class)->label('Welcome to Mailbook'); | ||
Mailbook::add(Changelog::class); | ||
|
||
Mailbook::category('Orders')->group(function () { | ||
Mailbook::category('Orders')->group(function (): void { | ||
Mailbook::add(OrderCreated::class); | ||
Mailbook::add(OrderShipped::class) | ||
->variant('Tracking link', fn (): OrderShipped => new OrderShipped(true)) | ||
->variant('Post', fn (): OrderShipped => new OrderShipped(false)); | ||
}); | ||
|
||
Mailbook::category('Account')->group(function () { | ||
Mailbook::category('Account')->group(function (): void { | ||
Mailbook::add(AccountCreated::class); | ||
Mailbook::add(AccountDeleted::class); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use Illuminate\Support\Facades\Route; | ||
|
||
Route::get('/', fn () => to_route('mailbook.dashboard')); |