app/Http/Controllers/UserController.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)
    {
        $users=User::find($id);
        if(!$users){
            return back()->with('Error','User not found');
        }
        $users->update($request->all());
        return back()->with('success','User updted successfully');
    }
public function update ( Request $ request , $ id ) { $ users = User :: find ( $ id ) ; if ( ! $ users ) { return back ( ) -> with ( 'Error' , 'User not found' ) ; } $ users -> update ( $ request -> all ( ) ) ; return back ( ) -> with ( 'success' , 'User updted successfully' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .
//