app/Http/Controllers/PanaderiaController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \App\panaderia  $panaderia
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(Request $request, $id)
    {
        $datospanaderia=request()->except(['_token','_method']);
        panaderia::where('id','=',$id)->update($datospanaderia);
        $panaderia= panaderia::findOrFail($id);
        return view('panaderia.edit',compact('panaderia'));
        return redirect('panaderia')->with('Mensaje','Informacion modificada con éxito');
    }
public function update ( Request $ request , $ id ) { $ datospanaderia = request ( ) -> except ( [ '_token' , '_method' ] ) ; panaderia :: where ( 'id' , '=' , $ id ) -> update ( $ datospanaderia ) ; return redirect ( 'panaderia' ) -> with ( 'Mensaje' , 'Informacion modificada con éxito') ; }
Update the specified resource in storage.
Update the specified resource in storage .
// //$panaderia= panaderia::findOrFail($id); //return view('panaderia.edit',compact('panaderia'));