-
- if ($dryRun) {
- session()->flash('cleanup-images-warning', trans('settings.maint_image_cleanup_warning', ['count' => $deleteCount]));
- } else {
- $this->showSuccessNotification(trans('settings.maint_image_cleanup_success', ['count' => $deleteCount]));
- }
-
- return redirect('/settings/maintenance#image-cleanup')->withInput();
- }
-
- /**
- * Action to send a test e-mail to the current user.
- */
- public function sendTestEmail()
- {
- $this->checkPermission('settings-manage');
-
- user()->notify(new TestEmail());
- $this->showSuccessNotification(trans('settings.maint_send_test_email_success', ['address' => user()->email]));
-
- return redirect('/settings/maintenance#image-cleanup')->withInput();