Aucune description
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

controller.model.stub 1.8KB

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