small fixes

This commit is contained in:
1day2die 2023-01-11 15:48:22 +01:00
parent 831a38a317
commit 094393e7fb
2 changed files with 6 additions and 1 deletions

View file

@ -55,7 +55,7 @@ class System
'show-tos' => 'string',
'alert-enabled' => 'string',
'alter-type' => 'string',
'alert-message' => 'string',
'alert-message' => 'string|nullable',
]);
$validator->after(function ($validator) use ($request) {

View file

@ -336,6 +336,11 @@
class="form-control @error('alert-message') is-invalid @enderror">
{{ config('SETTINGS::SYSTEM:ALERT_MESSAGE', '') }}
</textarea>
@error('alert-message')
<div class="text-danger">
{{ $message }}
</div>
@enderror
</div>
</div>