Exemplo n.º 1
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @return \Illuminate\Http\Response
  */
 public function destroy(Request $request)
 {
     $this->validate($request, ['id' => 'exists:atribuciones']);
     $atribucion = Atribucion::find($request->get('id'));
     $atribucion->delete();
     return response()->json($atribucion);
 }