Skip to content

Commit

Permalink
Merge pull request #9 from mohamadreza1388/main
Browse files Browse the repository at this point in the history
editor
  • Loading branch information
BaseMax authored Sep 16, 2024
2 parents dfbbe75 + 3a81e4f commit 58b72ed
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 12 deletions.
13 changes: 13 additions & 0 deletions app/Http/Controllers/EditorController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class EditorController extends Controller
{
public function index()
{
return view("editor");
}
}
11 changes: 11 additions & 0 deletions resources/views/editor.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Salam Editor</title>
</head>
<body>

</body>
</html>
14 changes: 2 additions & 12 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
use App\Http\Controllers\Admin\DashboardController as AdminDashboard;
use App\Http\Controllers\AuthController;
use App\Http\Controllers\DashboardController as UserDashboard;
use App\Http\Controllers\EditorController;
use App\Http\Controllers\ProfileController;
use App\Http\Controllers\User\CodeController;
use Illuminate\Support\Facades\Mail;
Expand Down Expand Up @@ -44,15 +45,4 @@
//Breeze Auth System Routes
require __DIR__.'/auth.php';

Route::get('/send-email', function () {
$to_email = '[email protected]'; // آدرس ایمیل مقصد
$subject = 'Test Email Subject'; // موضوع ایمیل
$message = 'This is a test email without using a view.'; // متن ایمیل

Mail::raw($message, function ($mail) use ($to_email, $subject) {
$mail->to($to_email)
->subject($subject);
});

return 'Email Sent';
});
Route::get('/editor', [EditorController::class, 'index'])->name('editor');

0 comments on commit 58b72ed

Please sign in to comment.