mirror of
https://github.com/ProxyPanel/ProxyPanel.git
synced 2026-04-04 19:49:16 +00:00
Simplify array merge & time format
This commit is contained in:
@@ -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'));
|
||||
//}
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user