AwardController text correction (#1010)

Fixed the flash message texts
This commit is contained in:
B.Fatih KOZ 2021-01-27 00:31:54 +03:00 committed by GitHub
parent 4911f6799d
commit 0d45fc287b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -186,13 +186,13 @@ class AwardController extends Controller
{ {
$award = $this->awardRepository->findWithoutFail($id); $award = $this->awardRepository->findWithoutFail($id);
if (empty($award)) { if (empty($award)) {
Flash::error('Fare not found'); Flash::error('Award not found');
return redirect(route('admin.awards.index')); return redirect(route('admin.awards.index'));
} }
$this->awardRepository->delete($id); $this->awardRepository->delete($id);
Flash::success('Fare deleted successfully.'); Flash::success('Award deleted successfully.');
return redirect(route('admin.awards.index')); return redirect(route('admin.awards.index'));
} }