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(Request $request, Task $task)
    {
        $task->update($request->all());
        return $task->name." is updated";
    }
public function update ( Request $ request , Task $ task ) { $ task -> update ( $ request -> all ( ) ) ; return $ task -> name . "  is updated " ; }
Update the specified resource in storage.
Update the specified resource in storage .