/** * Remove the specified resource from storage. * * @param int $id * */ public function destroy($id) { $contact = Contacts::whereId($id); $contact->delete(); return response()->json(array('contact-exists' => $contact->exists())); }
/** * Remove the specified resource from storage. * * @param int $id * */ public function destroy($id) { $contact = Contacts::whereId($id); $contact->delete(); return response()->json(array('contact-exists' => $contact->exists())); }