| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <?php
- namespace App\Http\Controllers;
- use App\Batch;
- use Illuminate\Http\Request;
- use Illuminate\Support\Facades\Gate;
- class BatchController extends Controller
- {
- /**
- * Display a listing of the resource.
- *
- * @return \Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\View\Factory|\Illuminate\Http\Response|\Illuminate\View\View
- */
- public function index()
- {
- if(!Gate::allows('波次-查询')){ return redirect(url('/')); }
- $batches=Batch::orderBy('id','desc')->paginate(50);
- return view('maintenance.batch.index',compact('batches'));
- }
- /**
- * Show the form for creating a new resource.
- *
- * @return \Illuminate\Http\Response
- */
- public function create()
- {
- //
- }
- /**
- * Store a newly created resource in storage.
- *
- * @param \Illuminate\Http\Request $request
- * @return \Illuminate\Http\Response
- */
- public function store(Request $request)
- {
- //
- }
- /**
- * Display the specified resource.
- *
- * @param \App\Batch $batch
- * @return \Illuminate\Http\Response
- */
- public function show(Batch $batch)
- {
- //
- }
- /**
- * Show the form for editing the specified resource.
- *
- * @param \App\Batch $batch
- * @return \Illuminate\Http\Response
- */
- public function edit(Batch $batch)
- {
- //
- }
- /**
- * Update the specified resource in storage.
- *
- * @param \Illuminate\Http\Request $request
- * @param \App\Batch $batch
- * @return \Illuminate\Http\Response
- */
- public function update(Request $request, Batch $batch)
- {
- //
- }
- /**
- * Remove the specified resource from storage.
- *
- * @param \App\Batch $batch
- * @return \Illuminate\Http\Response
- */
- public function destroy(Batch $batch)
- {
- //
- }
- }
|