We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05945e6 commit 11f0c14Copy full SHA for 11f0c14
src/Prettus/Repository/Generators/Stubs/controller/controller.stub
@@ -146,7 +146,7 @@ class $CONTROLLER$Controller extends Controller
146
147
$this->validator->with($request->all())->passesOrFail(ValidatorInterface::RULE_UPDATE);
148
149
- $$SINGULAR$ = $this->repository->update($id, $request->all());
+ $$SINGULAR$ = $this->repository->update($request->all(), $id);
150
151
$response = [
152
'message' => '$CLASS$ updated.',
0 commit comments