Пример #1
0
 /**
  * Update the specified resource in storage.
  *
  * @param \TypiCMS\Modules\News\Models\News               $news
  * @param \TypiCMS\Modules\News\Http\Requests\FormRequest $request
  *
  * @return \Illuminate\Http\RedirectResponse
  */
 public function update(News $news, FormRequest $request)
 {
     $this->repository->update($request->all());
     return $this->redirect($request, $news);
 }
Пример #2
0
 /**
  * Update the specified resource in storage.
  *
  * @param  $model
  * @param FormRequest $request
  *
  * @return Redirect
  */
 public function update($model, FormRequest $request)
 {
     $this->repository->update($request->all());
     return $this->redirect($request, $model);
 }