Skip to content

Commit

Permalink
test mail
Browse files Browse the repository at this point in the history
  • Loading branch information
butburg committed Aug 25, 2024
1 parent 934dd0c commit 7dc5460
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,21 @@
use App\Http\Controllers\CommentController;
use App\Http\Controllers\AdminController;
use App\Http\Middleware\Admin;
use Illuminate\Support\Facades\Mail;


Route::get('/', [PostController::class, 'gallery'])->name('welcome');

Route::get('/dashboard', [PostController::class, 'gallery'])->middleware(['auth', 'verified'])->name('dashboard');
Route::view('/impressum', 'impressum')->name('impressum');
Route::get('/send-test-email', [TestMailController::class, 'sendTestEmail']);
#Route::get('/send-test-email', [TestMailController::class, 'sendTestEmail']);

Route::get('/send-test-email', function () {
Mail::raw('This is a test email', function ($message) {
$message->to('recipient@example.com')->subject('Test Email');
});
return 'Test email sent!';
});

Route::middleware('auth', 'verified')->group(function () {
// Routes here are accessible to authenticated users only!!
Expand Down

0 comments on commit 7dc5460

Please sign in to comment.