app/Http/Controllers/TodoController.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(TodoCreateFormRequest $request, $id)
    {
        $todoId = $id;
        $todoDetails = $request->all();
        return response()->json([
            'data' => $this->todoRepository->update($todoId, $todoDetails)
        ]);
    }
public function update ( TodoCreateFormRequest $ request , $ id ) { $ todoId = $ id ; $ todoDetails = $ request -> all ( ) ; return response ( ) -> json ( [ 'data' => $ this -> todoRepository -> update ( $ todoId , $ todoDetails ) ] ) ; }
Update the specified resource in storage.
Update the specified resource in storage .
//