TestResourceController.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <?php
  2. namespace Knuckles\Scribe\Tests\Fixtures;
  3. use Illuminate\Http\Request;
  4. use Illuminate\Routing\Controller;
  5. class TestResourceController extends Controller
  6. {
  7. /**
  8. * Display a listing of the resource.
  9. *
  10. * @response {
  11. * "index_resource": true
  12. * }
  13. *
  14. * @return \Illuminate\Http\Response
  15. */
  16. public function index()
  17. {
  18. return [
  19. 'index_resource' => true,
  20. ];
  21. }
  22. /**
  23. * Show the form for creating a new resource.
  24. *
  25. * @response {
  26. * "create_resource": true
  27. * }
  28. *
  29. * @return \Illuminate\Http\Response
  30. */
  31. public function create()
  32. {
  33. return [
  34. 'create_resource' => true,
  35. ];
  36. }
  37. /**
  38. * Store a newly created resource in storage.
  39. *
  40. * @param \Illuminate\Http\Request $request
  41. *
  42. * @return \Illuminate\Http\Response
  43. */
  44. public function store(Request $request)
  45. {
  46. }
  47. /**
  48. * Display the specified resource.
  49. *
  50. * @response {
  51. * "show_resource": true
  52. * }
  53. *
  54. * @param int $id
  55. *
  56. * @return \Illuminate\Http\Response
  57. */
  58. public function show($id)
  59. {
  60. return [
  61. 'show_resource' => true,
  62. ];
  63. }
  64. /**
  65. * Show the form for editing the specified resource.
  66. *
  67. * @response {
  68. * "edit_resource": true
  69. * }
  70. *
  71. * @param int $id
  72. *
  73. * @return \Illuminate\Http\Response
  74. */
  75. public function edit($id)
  76. {
  77. return [
  78. 'edit_resource' => true,
  79. ];
  80. }
  81. /**
  82. * Update the specified resource in storage.
  83. *
  84. * @param \Illuminate\Http\Request $request
  85. * @param int $id
  86. *
  87. * @return \Illuminate\Http\Response
  88. */
  89. public function update(Request $request, $id)
  90. {
  91. }
  92. /**
  93. * Remove the specified resource from storage.
  94. *
  95. * @param int $id
  96. *
  97. * @return \Illuminate\Http\Response
  98. */
  99. public function destroy($id)
  100. {
  101. }
  102. }