public function edit(TaskRequest $request, Task $task)
    {
        return $this->response->title(trans('app.edit') . ' ' . trans('task::task.name'))
            ->view('task::task.edit', true)
            ->data(compact('task'))
            ->output();
    }
public function edit(TaskRequest $request, Task $task)
    {
        return $this->response->title(trans('app.edit') . ' ' . trans('task::task.name'))
            ->view('task::task.edit', true)
            ->data(compact('task'))
            ->output();
    }
public function edit ( TaskRequest $ request , Task $ task ) { return $ this -> response -> title ( trans ( 'app.edit' ) . ' ' . trans ( 'task::task.name' ) ) -> view ( 'task::task.edit' , true ) -> data ( compact ( 'task' ) ) -> output ( ) ; }
Show task for editing.

@param Request $request
@param Model   $task

@return Response
Show task for editing .