app/Http/Controllers/TaskController.php
/**
     * Update the specified resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \App\Models\Task  $task
     * @return \Illuminate\Http\Response
     */
Update the specified resource in storage.
Update the specified resource in storage .
public function update(TaskUpdateRequest $request, Task $task)
    {
        $input = $request->validated();
        $updated_task = $this->task_service->update(
            $task,
            $input['label'],
            $input['is_complete'],
            auth()->user()->id
        );
        return new TaskResource($updated_task);
    }
public function update ( TaskUpdateRequest $ request , Task $ task ) { $ input = $ request -> validated ( ) ; $ updated_task = $ this -> task_service -> update ( $ task , $ input [ 'label' ] , $ input [ 'is_complete' ] , auth ( ) -> user ( ) -> id ) ; return new TaskResource ( $ updated_task ) ; }
Update the specified resource in storage.
Update the specified resource in storage .