Mercurial > packages > magicforger
diff src/Generator/Controller/stubs/controller.stub @ 11:3426c7e91c24 main-dev
Modifying generaters and replacers
| author | luka |
|---|---|
| date | Wed, 24 Apr 2024 19:53:42 -0400 |
| parents | 769a17898cc0 |
| children | f19c023bda04 |
line wrap: on
line diff
--- a/src/Generator/Controller/stubs/controller.stub Sat Dec 02 10:20:32 2023 -0500 +++ b/src/Generator/Controller/stubs/controller.stub Wed Apr 24 19:53:42 2024 -0400 @@ -41,7 +41,7 @@ ${{ modelVariable }} = new {{ model }}(); //insert the values into the model - // {{ valuesForCreation }} + ${{ modelVariable }}->map_values($validated); ${{ modelVariable }}->save(); @@ -80,7 +80,7 @@ $validated = $request->validated(); // Set the variables - //{{ valuesForCreation }} + ${{ modelVariable }}->map_values($validated); ${{ modelVariable }}->save();
