Simplify array merge & time format

This commit is contained in:
BrettonYe
2025-07-16 21:36:14 +08:00
parent 957d888661
commit 4032724480
28 changed files with 91 additions and 98 deletions

View File

@@ -10,12 +10,12 @@ class MessageController extends Controller
{
public function index(string $type, string $msgId): View
{
//if ($type === 'markdown') {
// if ($type === 'markdown') {
$log = NotificationLog::whereMsgId($msgId)->latest()->firstOrFail();
$title = $log->title;
$content = Markdown::parse($log->content)->toHtml();
return view('components.message', compact('title', 'content'));
//}
// }
}
}