mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-18 15:50:50 +08:00
[api] add notifications
This commit is contained in:
@@ -51,6 +51,7 @@ class MessageController extends Controller
|
||||
public function show($id)
|
||||
{
|
||||
$message = Message::query()->with(['send_user'])->findOrFail($id);
|
||||
$message->update(['unread' => 'no']);
|
||||
$resource = new MessageResource($message);
|
||||
$resource->additional([
|
||||
'page_title' => nexus_trans('message.show.page_title'),
|
||||
|
||||
Reference in New Issue
Block a user