-
Notifications
You must be signed in to change notification settings - Fork 4
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
6 changed files
with
158 additions
and
194 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 |
---|---|---|
|
@@ -20,20 +20,19 @@ use Proton\Mail\RegisterMail; | |
use Proton\Mail\PasswordMail; | ||
|
||
Route::get('/proton', function () { | ||
// Set locale | ||
// app()->setLocale('pl'); | ||
|
||
// User (required columns: id, name, code) | ||
// $user = User::first(); | ||
$user = User::first(); | ||
|
||
// Send email sample | ||
Mail::to('[email protected]')->send(new DefaultMail()); | ||
|
||
// User reset password, use null for example | ||
Mail::to('[email protected]')->send(new PasswordMail(null, 'XXX-123')); | ||
Mail::to('[email protected]')->send(new PasswordMail($user, '321-XXX-123')); | ||
Mail::to('[email protected]')->locale('pl')->send(new PasswordMail($user, '321-XXX-123')); | ||
|
||
// User activation link (User model required columns: id, name, code), use null for example | ||
Mail::to('[email protected]')->send(new RegisterMail(null)); | ||
Mail::to('[email protected]')->send(new RegisterMail($user)); | ||
Mail::to('[email protected]')->locale('pl')->send(new RegisterMail($user)); | ||
|
||
// Show example email view | ||
return view('proton::email.default'); | ||
|
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
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
Oops, something went wrong.