BatchController.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <?php
  2. namespace App\Http\Controllers;
  3. use App\Batch;
  4. use Illuminate\Http\Request;
  5. use Illuminate\Support\Facades\Gate;
  6. class BatchController extends Controller
  7. {
  8. /**
  9. * Display a listing of the resource.
  10. *
  11. * @return \Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\Http\Response|\Illuminate\View\View
  12. */
  13. public function index()
  14. {
  15. if(!Gate::allows('波次-查询')){ return redirect(url('/')); }
  16. $batches=Batch::orderBy('id','desc')->paginate(50);
  17. return view('maintenance.batch.index',compact('batches'));
  18. }
  19. /**
  20. * Show the form for creating a new resource.
  21. *
  22. * @return \Illuminate\Http\Response
  23. */
  24. public function create()
  25. {
  26. //
  27. }
  28. /**
  29. * Store a newly created resource in storage.
  30. *
  31. * @param \Illuminate\Http\Request $request
  32. * @return \Illuminate\Http\Response
  33. */
  34. public function store(Request $request)
  35. {
  36. //
  37. }
  38. /**
  39. * Display the specified resource.
  40. *
  41. * @param \App\Batch $batch
  42. * @return \Illuminate\Http\Response
  43. */
  44. public function show(Batch $batch)
  45. {
  46. //
  47. }
  48. /**
  49. * Show the form for editing the specified resource.
  50. *
  51. * @param \App\Batch $batch
  52. * @return \Illuminate\Http\Response
  53. */
  54. public function edit(Batch $batch)
  55. {
  56. //
  57. }
  58. /**
  59. * Update the specified resource in storage.
  60. *
  61. * @param \Illuminate\Http\Request $request
  62. * @param \App\Batch $batch
  63. * @return \Illuminate\Http\Response
  64. */
  65. public function update(Request $request, Batch $batch)
  66. {
  67. //
  68. }
  69. /**
  70. * Remove the specified resource from storage.
  71. *
  72. * @param \App\Batch $batch
  73. * @return \Illuminate\Http\Response
  74. */
  75. public function destroy(Batch $batch)
  76. {
  77. //
  78. }
  79. }