$discussion->getRouteKey(), 'key' => [ 'public' => $discussion->getPublicKey(), 'route' => $discussion->getRouteKey(), ], 'discussable_id' => $discussion->discussable_id, 'discussable_type' => $discussion->discussable_type, 'message' => $discussion->message, 'attachments' => $discussion->attachments, 'user_id' => $discussion->user_id, 'user_type' => $discussion->user_type, 'deleted_at' => $discussion->deleted_at, 'url' => [ 'public' => trans_url('discussion/'.$discussion->getPublicKey()), 'user' => guard_url('discussion/discussion/'.$discussion->getRouteKey()), ], 'status' => trans('app.'.$discussion->status), 'created_at' => format_date($discussion->created_at), 'updated_at' => format_date($discussion->updated_at), ]; } }