app/Http/Controllers/Avalon/NoteController.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)
    {
    	$note = Note::findOrFail($id);
	    $note->doc_html = $request->input('editor-html-code') ?? '';
	    $note->doc_md = $request->input('editor-markdown-doc') ?? '';
	    $note->save();
	    return redirect()->route('note.index');
    }
public function update ( Request $ request , $ id ) { $ note = Note :: findOrFail ( $ id ) ; $ note -> doc_html = $ request -> input ( 'editor-html-code' ) ?? '' ; $ note -> doc_md = $ request -> input ( 'editor-markdown-doc' ) ?? '' ; $ note -> save ( ) ; return redirect ( ) -> route ( 'note.index' ) ; }
Update the specified resource in storage.
Update the specified resource in storage .