/** * Remove the specified PartnerTransaction from storage. * * @param int $id * * @return Response */ public function destroy($id) { $partnerTransaction = $this->partnerTransactionRepository->find($id); if (empty($partnerTransaction)) { Flash::error('PartnerTransaction not found'); return redirect(route('partnerTransactions.index')); } $this->partnerTransactionRepository->delete($id); Flash::success('PartnerTransaction deleted successfully.'); return redirect(route('partnerTransactions.index')); }