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