/** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */ public function destroy($id) { // $notaris = ListNotaris::find($id); if (is_null($notaris)) { return Response::json("Not Found", 404); } $success = $notaris->delete(); if (!$success) { return Response::json("Error delete", 500); } return Response::json("success delete", 200); }