app/Http/Controllers/newstudentm1Controller.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(Request $request,$id)
    {
        $newstudentm1Model = newstudentm1Model::find($id);
        $newstudentm1Model->update($request->all());
        return redirect()->route('SortNewstudentM1.index')
        ->with('success', 'Update successfully');
    }
public function update ( Request $ request , $ id ) { $ newstudentm1Model = newstudentm1Model :: find ( $ id ) ; $ newstudentm1Model -> update ( $ request -> all ( ) ) ; return redirect ( ) -> route ( 'SortNewstudentM1.index' ) -> with ( 'success' , 'Update successfully' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .