Skip to content

Commit 11f0c14

Browse files
committed
fix wrong order of repository's update params
1 parent 05945e6 commit 11f0c14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Prettus/Repository/Generators/Stubs/controller/controller.stub

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ class $CONTROLLER$Controller extends Controller
146146

147147
$this->validator->with($request->all())->passesOrFail(ValidatorInterface::RULE_UPDATE);
148148

149-
$$SINGULAR$ = $this->repository->update($id, $request->all());
149+
$$SINGULAR$ = $this->repository->update($request->all(), $id);
150150

151151
$response = [
152152
'message' => '$CLASS$ updated.',

0 commit comments

Comments
 (0)