- edit destroy methods

This commit is contained in:
Kamil Niemczycki 2023-08-07 01:31:53 +02:00
parent 2d1d51f777
commit a08c6c9529
Signed by: kamilniemczycki
GPG Key ID: 04D4E2012F969213
2 changed files with 4 additions and 4 deletions

View File

@ -90,12 +90,12 @@ class CVController extends Controller
if ($cv->sended && ! $request->boolean('sended')) {
$toUpdate = array_merge($toUpdate, [
'sended' => false,
'sended_timestamp' => null,
'sended_timestamp' => null,
]);
} else if (! $cv->sended && $request->boolean('sended')) {
$toUpdate = array_merge($toUpdate, [
'sended' => true,
'sended_timestamp' => now(),
'sended_timestamp' => now(),
]);
}
@ -117,6 +117,6 @@ class CVController extends Controller
return redirect()
->route('admin.cv.index')
->with('info', 'Usunięto CV dla firmy "'. $name .'"');
->with('info', 'Usunięto CV dla firmy '. $name .'.');
}
}

View File

@ -40,6 +40,6 @@ class MessageController extends Controller
return redirect()
->route('admin.message.index')
->with(['success' => 'Wiadomość od '. $sender .' została usunięta']);
->with('info', 'Wiadomość od '. $sender .' została usunięta.');
}
}