app/Http/Controllers/ComentarioController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \App\Models\ComentarioModel  $comentarioModel
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update($id,Request $request)
    {
        $current_timestamp              = date ('Y-m-d H:i:s');
        $comentario                      =ComentarioModel::findOrFail($id);
        $comentario->comentario           = $request['comentario'];
        $comentario->clave_post           = $request['clave_post'];
        $comentario->correo               = $request['correo'];
        $comentario->save();
    }
public function update ( $ id , Request $ request ) { $ current_timestamp = date ( 'Y-m-d H:i:s' ) ; $ comentario = ComentarioModel :: findOrFail ( $ id ) ; $ comentario -> comentario = $ request [ 'comentario' ] ; $ comentario -> clave_post = $ request [ 'clave_post' ] ; $ comentario -> correo = $ request [ 'correo' ] ; $ comentario -> save ( ) ; }
Update the specified resource in storage.
Update the specified resource in storage .