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