app/Http/Controllers/admin/SlidsController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index(Request $request)
    {   
        $search = $request -> input('search','');
        $data = Slids::where('surl','like','%'.$search.'%')->paginate(5)->appends($request->input());
        return view('admin.slids.index',['data'=>$data]);
    }
public function index ( Request $ request ) { $ search = $ request -> input ( 'search' , '' ) ; $ data = Slids :: where ( 'surl' , 'like' , '%' . $ search . '%' ) -> paginate ( 5 ) -> appends ( $ request -> input ( ) ) ; return view ( 'admin.slids.index' , [ 'data' => $ data ] ) ; }
Display a listing of the resource.
Display a listing of the resource .
//获取搜素条件 //搜索分页