app/Http/Controllers/TipoDiscapacidadController.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)
    {
        $nombre = $request->get('buscar');
        $variablesurl = $request->all();
        $tipos_d = Tipo_discapacidad::where('tipo_d','like',"%$nombre%")->orderBy('id','asc')->paginate(4)
        ->appends($variablesurl);
        return view('tipoDiscapacidad.list', compact('tipos_d'));
    }
public function index ( Request $ request ) { $ nombre = $ request -> get ( 'buscar' ) ; $ variablesurl = $ request -> all ( ) ; $ tipos_d = Tipo_discapacidad :: where ( 'tipo_d' , 'like' , " % $ nombre % " ) -> orderBy ( 'id' , 'asc' ) -> paginate ( 4 ) -> appends ( $ variablesurl ) ; return view ( 'tipoDiscapacidad.list' , compact ( 'tipos_d' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .