/** * Remove the specified resource from storage. * * @param int $id * @return Response */ public function destroy($id) { $destroy = ConfigMotivo::destroy($id); if ($destroy) { return response()->json(['status' => true]); } return response()->json(['status' => false]); }