public function destroy(Contactsuser $contactsuser) { if (is_integer($contactsuser)) { $contactsuser = Contactsuser::find($contactsuser); } $contactsuser->delete(); Flash::success('Contactsuser has been created Deleted!'); return Redirect::back(); }
public function destroy($contactsuser) { $contactsuser = Contactsuser::find($contactsuser); $contactsuser->delete(); return response(['data' => true, 'status' => 'success', 'message' => 'successfully deleted']); }