app/Http/Controllers/Backsite/ConsultationController.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(UpdateConsultationRequest $request, Consultation $consultation)
    {
        $data = $request->all();
        $consultation->update($data);
        alert()->success('Success Message', 'Successfully updated consultation');
        return redirect()->route('backsite.consultation.index');
    }
public function update ( UpdateConsultationRequest $ request , Consultation $ consultation ) { $ data = $ request -> all ( ) ; $ consultation -> update ( $ data ) ; alert ( ) -> success ( 'Success Message' , 'Successfully updated consultation' ) ; return redirect ( ) -> route ( 'backsite.consultation.index' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .
// get all request from frontsite // update to database