- edit destroy methods
This commit is contained in:
parent
2d1d51f777
commit
a08c6c9529
@ -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 .'.');
|
||||
}
|
||||
}
|
||||
|
@ -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.');
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user