Sin descripción
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

controller.nested.stub 2.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <?php
  2. namespace {{ namespace }};
  3. use {{ namespacedModel }};
  4. use {{ rootNamespace }}Http\Controllers\Controller;
  5. use Illuminate\Http\Request;
  6. use {{ namespacedParentModel }};
  7. class {{ class }} extends Controller
  8. {
  9. /**
  10. * Display a listing of the resource.
  11. *
  12. * @param \{{ namespacedParentModel }} ${{ parentModelVariable }}
  13. * @return \Illuminate\Http\Response
  14. */
  15. public function index({{ parentModel }} ${{ parentModelVariable }})
  16. {
  17. //
  18. }
  19. /**
  20. * Show the form for creating a new resource.
  21. *
  22. * @param \{{ namespacedParentModel }} ${{ parentModelVariable }}
  23. * @return \Illuminate\Http\Response
  24. */
  25. public function create({{ parentModel }} ${{ parentModelVariable }})
  26. {
  27. //
  28. }
  29. /**
  30. * Store a newly created resource in storage.
  31. *
  32. * @param \Illuminate\Http\Request $request
  33. * @param \{{ namespacedParentModel }} ${{ parentModelVariable }}
  34. * @return \Illuminate\Http\Response
  35. */
  36. public function store(Request $request, {{ parentModel }} ${{ parentModelVariable }})
  37. {
  38. //
  39. }
  40. /**
  41. * Display the specified resource.
  42. *
  43. * @param \{{ namespacedParentModel }} ${{ parentModelVariable }}
  44. * @param \{{ namespacedModel }} ${{ modelVariable }}
  45. * @return \Illuminate\Http\Response
  46. */
  47. public function show({{ parentModel }} ${{ parentModelVariable }}, {{ model }} ${{ modelVariable }})
  48. {
  49. //
  50. }
  51. /**
  52. * Show the form for editing the specified resource.
  53. *
  54. * @param \{{ namespacedParentModel }} ${{ parentModelVariable }}
  55. * @param \{{ namespacedModel }} ${{ modelVariable }}
  56. * @return \Illuminate\Http\Response
  57. */
  58. public function edit({{ parentModel }} ${{ parentModelVariable }}, {{ model }} ${{ modelVariable }})
  59. {
  60. //
  61. }
  62. /**
  63. * Update the specified resource in storage.
  64. *
  65. * @param \Illuminate\Http\Request $request
  66. * @param \{{ namespacedParentModel }} ${{ parentModelVariable }}
  67. * @param \{{ namespacedModel }} ${{ modelVariable }}
  68. * @return \Illuminate\Http\Response
  69. */
  70. public function update(Request $request, {{ parentModel }} ${{ parentModelVariable }}, {{ model }} ${{ modelVariable }})
  71. {
  72. //
  73. }
  74. /**
  75. * Remove the specified resource from storage.
  76. *
  77. * @param \{{ namespacedParentModel }} ${{ parentModelVariable }}
  78. * @param \{{ namespacedModel }} ${{ modelVariable }}
  79. * @return \Illuminate\Http\Response
  80. */
  81. public function destroy({{ parentModel }} ${{ parentModelVariable }}, {{ model }} ${{ modelVariable }})
  82. {
  83. //
  84. }
  85. }