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