app/Http/Controllers/Admin/ScreenController.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)
    {
        $screen = screen::find($id);
        $screen->user_id = $request->user;
        $screen->date = $request->date;
        $screen->screen_location = $request->description;
        $screen->save();
        return redirect()->route('screen.index')->with('message','Record Updated Successfully');
    }
public function update ( Request $ request , $ id ) { $ screen = screen :: find ( $ id ) ; $ screen -> user_id = $ request -> user ; $ screen -> date = $ request -> date ; $ screen -> screen_location = $ request -> description ; $ screen -> save ( ) ; return redirect ( ) -> route ( 'screen.index' ) -> with ( 'message' , 'Record Updated Successfully' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .