VersionController.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?php
  2. namespace App\Http\Controllers\Api\V1;
  3. use App\Http\Controllers\Controller;
  4. use Illuminate\Http\Request;
  5. use App\Facades\VersionFacade;
  6. class VersionController extends Controller
  7. {
  8. /**
  9. * Display a listing of the resource.
  10. *
  11. * @return \Illuminate\Http\Response
  12. */
  13. public function index()
  14. {
  15. $conditions = [
  16. 'type' => request('platform')
  17. ];
  18. $fields = ['*'];
  19. return VersionFacade::findBy($conditions, $fields);
  20. }
  21. /**
  22. * Store a newly created resource in storage.
  23. *
  24. * @param \Illuminate\Http\Request $request
  25. * @return \Illuminate\Http\Response
  26. */
  27. public function store(Request $request)
  28. {
  29. //
  30. }
  31. /**
  32. * Display the specified resource.
  33. *
  34. * @param int $id
  35. * @return \Illuminate\Http\Response
  36. */
  37. public function show($id)
  38. {
  39. //
  40. }
  41. /**
  42. * Update the specified resource in storage.
  43. *
  44. * @param \Illuminate\Http\Request $request
  45. * @param int $id
  46. * @return \Illuminate\Http\Response
  47. */
  48. public function update(Request $request, $id)
  49. {
  50. //
  51. }
  52. /**
  53. * Remove the specified resource from storage.
  54. *
  55. * @param int $id
  56. * @return \Illuminate\Http\Response
  57. */
  58. public function destroy($id)
  59. {
  60. //
  61. }
  62. }