app/Http/Controllers/Admin/appointmentController.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(AppointmenteValidator $request, $id)
    {
        $data= $request->all();
        $appointment = Appointment::findorfail($id);
        $appointment->update($data);
        return redirect()->route('appointment.index')->with ('success', 'Appointment Updated Successfully');
    }
public function update ( AppointmenteValidator $ request , $ id ) { $ data = $ request -> all ( ) ; $ appointment = Appointment :: findorfail ( $ id ) ; $ appointment -> update ( $ data ) ; return redirect ( ) -> route ( 'appointment.index' ) -> with ( 'success' , 'Appointment Updated Successfully' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .