Skip to content

Commit e289d53

Browse files
committed
add message to controlllers
1 parent 8113d43 commit e289d53

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

src/Controllers/ActionMonitoringController.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ public function destroy(int $id)
2020
->where('id', $id)
2121
->delete();
2222

23-
return to_route('user-monitoring.actions-monitoring');
23+
return to_route('user-monitoring.actions-monitoring')->with([
24+
'message' => 'The action has been deleted.',
25+
]);
2426
}
2527
}

src/Controllers/AuthenticationMonitoringController.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ public function destroy(int $id)
2020
->where('id', $id)
2121
->delete();
2222

23-
return to_route('user-monitoring.authentications-monitoring');
23+
return to_route('user-monitoring.authentications-monitoring')->with([
24+
'message' => 'The action has been deleted.',
25+
]);
2426
}
2527
}

src/Controllers/VisitMonitoringController.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ public function destroy(int $id)
2020
->where('id', $id)
2121
->delete();
2222

23-
return to_route('user-monitoring.visits-monitoring');
23+
return to_route('user-monitoring.visits-monitoring')->with([
24+
'message' => 'The action has been deleted.',
25+
]);
2426
}
2527
}

0 commit comments

Comments
 (0)