Exemple #1
0
 /**
  * Update the specified resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function update(TypeFormRequest $request, Type $type)
 {
     // Update the $type
     $type->update($request->all());
     flash()->success('Type has been updated');
     return redirect('types');
 }