mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
add-trans
This commit is contained in:
@@ -11,7 +11,7 @@ class CommentController extends Controller
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
* @return array
|
||||
*/
|
||||
public function index(Request $request)
|
||||
{
|
||||
|
||||
@@ -31,6 +31,9 @@ class ExamController extends Controller
|
||||
{
|
||||
$result = $this->repository->getList($request->all());
|
||||
$resource = ExamResource::collection($result);
|
||||
$resource->additional([
|
||||
'page_title' => nexus_trans('exam.admin.list.page_title'),
|
||||
]);
|
||||
return $this->success($resource);
|
||||
}
|
||||
|
||||
|
||||
@@ -30,6 +30,9 @@ class ExamUserController extends Controller
|
||||
{
|
||||
$result = $this->repository->listUser($request->all());
|
||||
$resource = ExamUserResource::collection($result);
|
||||
$resource->additional([
|
||||
'page_title' => nexus_trans('exam-user.admin.list.page_title'),
|
||||
]);
|
||||
return $this->success($resource);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user