app/Http/Controllers/DateController.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)
    {
        $date = Date::find($id);
        $date->fill($request->all())->save();
        return redirect()->route('dates.edit',$date->id)
            ->with('info','Cita actualizada con éxito');
    }
public function update ( Request $ request , $ id ) { $ date = Date :: find ( $ id ) ; $ date -> fill ( $ request -> all ( ) ) -> save ( ) ; return redirect ( ) -> route ( 'dates.edit' , $ date -> id ) -> with ( 'info' , 'Cita actualizada con éxito') ; }
Update the specified resource in storage.
Update the specified resource in storage .