app/Http/Controllers/AdeudosController.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)
    {
        $numControl = $request->NumControl;
        $alumnos = Alumnos::where('NumControl', $numControl)->get();
        if ($alumnos != null) {
            return view('adeudos.index', compact('alumnos'));
        }
        abort(404);
    }
public function index ( Request $ request ) { $ numControl = $ request -> NumControl ; $ alumnos = Alumnos :: where ( 'NumControl' , $ numControl ) -> get ( ) ; if ( $ alumnos != null ) { return view ( 'adeudos.index' , compact ( 'alumnos' ) ) ; } abort ( 404 ) ; }
Display a listing of the resource.
Display a listing of the resource .
//