app/Http/Controllers/Admin/disciplinaryController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(DisciplinaryValidator $request, $id)
    {
        $data = $request->all();
        $disciplinary = Disciplinary::findorfail($id);
        $disciplinary->update($data);
        return redirect()->route('disciplinary.index')->with('success', 'Disciplinary Case updated Successfully');
    }
public function update ( DisciplinaryValidator $ request , $ id ) { $ data = $ request -> all ( ) ; $ disciplinary = Disciplinary :: findorfail ( $ id ) ; $ disciplinary -> update ( $ data ) ; return redirect ( ) -> route ( 'disciplinary.index' ) -> with ( 'success' , 'Disciplinary Case updated Successfully' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .