关联关系
This commit is contained in:
parent
548ff4323f
commit
a3f74471af
@ -49,13 +49,13 @@ class ProgramAppendConstructController extends BaseController
|
||||
]);
|
||||
}
|
||||
|
||||
public function submit(Request $request, Programs $program, ProgramAppends $append) {
|
||||
public function submit(Request $request, ProgramAppends $append) {
|
||||
$submitPayload = $request->only(["name", "from", "price", "append"]);
|
||||
$append->update($submitPayload);
|
||||
$append->is_original = $request->post("is_original", 0);
|
||||
$append->save();
|
||||
return redirect(route("program.construct.append.list", [
|
||||
"program"=>$program->id,
|
||||
"program"=>$append->program->id,
|
||||
]));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user