app/Http/Controllers/NoteController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \App\Note  $note
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(Request $request, Note $note)
    {
        $note->update($request->only('text'));
        return new NoteResource($note);
    }
public function update ( Request $ request , Note $ note ) { $ note -> update ( $ request -> only ( 'text' ) ) ; return new NoteResource ( $ note ) ; }
Update the specified resource in storage.
Update the specified resource in storage .