app/Http/Controllers/TaskController.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(TaskRequest $request, Task $task)
    {
        $this->checkUserID($task);
        $task->fill($request->all())->save();
        return redirect()->route('tasks.show', $task);
    }
public function update ( TaskRequest $ request , Task $ task ) { $ this -> checkUserID ( $ task ) ; $ task -> fill ( $ request -> all ( ) ) -> save ( ) ; return redirect ( ) -> route ( 'tasks.show' , $ task ) ; }
Update the specified resource in storage.
Update the specified resource in storage .