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