app/Http/Controllers/FrontAgendaController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  int  $id
     * @return \Illuminate\Http\RedirectResponse
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(Request $request, $id)
    {
        $agenda = AgendaModel::findOrFail($id);
        $agenda->update($request->all());
        flash('Evento atualizado com sucesso')->success();
        return redirect()->route('agenda.index', $id);
    }
public function update ( Request $ request , $ id ) { $ agenda = AgendaModel :: findOrFail ( $ id ) ; $ agenda -> update ( $ request -> all ( ) ) ; flash ( 'Evento atualizado com sucesso' ) -> success ( ) ; return redirect ( ) -> route ( 'agenda.index' , $ id ) ; }
Update the specified resource in storage.
Update the specified resource in storage .