mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-23 11:27:24 +08:00
exam add duration
This commit is contained in:
@@ -44,6 +44,7 @@ class ExamController extends Controller
|
||||
'name' => 'required|string',
|
||||
'indexes' => 'required|array|min:1',
|
||||
'status' => 'required|in:0,1',
|
||||
'duration' => 'numeric'
|
||||
];
|
||||
$request->validate($rules);
|
||||
$result = $this->repository->store($request->all());
|
||||
|
||||
@@ -23,6 +23,8 @@ class ExamResource extends JsonResource
|
||||
'description' => $this->description,
|
||||
'begin' => $this->begin,
|
||||
'end' => $this->end,
|
||||
'duration' => $this->duration,
|
||||
'duration_text' => $this->duration_text,
|
||||
'filters' => $this->filters,
|
||||
'filters_formatted' => $this->formatFilters($this->resource),
|
||||
'indexes' => $this->indexes,
|
||||
|
||||
Reference in New Issue
Block a user