$comments->getRouteKey(), 'key' => [ 'public' => $comments->getPublicKey(), 'route' => $comments->getRouteKey(), ], 'name' => $comments->name, 'comment_date' => $comments->comment_date, 'comment_message' => $comments->comment_message, 'profile_img' => $comments->profile_img, 'url' => [ 'public' => trans_url('comment/'.$comments->getPublicKey()), 'user' => guard_url('comment/comments/'.$comments->getRouteKey()), ], 'status' => trans('app.'.$comments->status), 'created_at' => format_date($comments->created_at), 'updated_at' => format_date($comments->updated_at), ]; } }