Bez popisu
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.model.api.stub 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. * Store a newly created resource in storage.
  19. *
  20. * @param \Illuminate\Http\Request $request
  21. * @return \Illuminate\Http\Response
  22. */
  23. public function store(Request $request)
  24. {
  25. //
  26. }
  27. /**
  28. * Display the specified resource.
  29. *
  30. * @param \{{ namespacedModel }} ${{ modelVariable }}
  31. * @return \Illuminate\Http\Response
  32. */
  33. public function show({{ model }} ${{ modelVariable }})
  34. {
  35. //
  36. }
  37. /**
  38. * Update the specified resource in storage.
  39. *
  40. * @param \Illuminate\Http\Request $request
  41. * @param \{{ namespacedModel }} ${{ modelVariable }}
  42. * @return \Illuminate\Http\Response
  43. */
  44. public function update(Request $request, {{ model }} ${{ modelVariable }})
  45. {
  46. //
  47. }
  48. /**
  49. * Remove the specified resource from storage.
  50. *
  51. * @param \{{ namespacedModel }} ${{ modelVariable }}
  52. * @return \Illuminate\Http\Response
  53. */
  54. public function destroy({{ model }} ${{ modelVariable }})
  55. {
  56. //
  57. }
  58. }