Mercurial > packages > magicforger
comparison src/Generator/Controller/stubs/controller.stub @ 7:769a17898cc0
Various changes to the generators and replacers - probably mostly just formatting
| author | luka |
|---|---|
| date | Wed, 18 Oct 2023 21:04:11 -0400 |
| parents | b0b2e79ad8e6 |
| children | 3426c7e91c24 |
comparison
equal
deleted
inserted
replaced
| 6:b46922d4a301 | 7:769a17898cc0 |
|---|---|
| 39 | 39 |
| 40 // | 40 // |
| 41 ${{ modelVariable }} = new {{ model }}(); | 41 ${{ modelVariable }} = new {{ model }}(); |
| 42 | 42 |
| 43 //insert the values into the model | 43 //insert the values into the model |
| 44 //{{ valuesForCreation }} | 44 // {{ valuesForCreation }} |
| 45 | 45 |
| 46 ${{ modelVariable }}->save(); | 46 ${{ modelVariable }}->save(); |
| 47 | 47 |
| 48 return redirect()->route('{{ tableName }}.index'); | 48 return redirect()->route('{{ tableName }}.index'); |
| 49 } | 49 } |
