Add validation and fillable fields

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-05-10 00:34:31 -07:00
parent bc9b47c46d
commit 054a2ab9d4

View file

@ -76,6 +76,7 @@ class Setting extends Model
'audit_interval' => 'numeric|nullable', 'audit_interval' => 'numeric|nullable',
'custom_forgot_pass_url' => 'url|nullable', 'custom_forgot_pass_url' => 'url|nullable',
'privacy_policy_link' => 'nullable|url', 'privacy_policy_link' => 'nullable|url',
'google_redirect' => 'nullable|url',
]; ];
protected $fillable = [ protected $fillable = [
@ -86,6 +87,10 @@ class Setting extends Model
'webhook_endpoint', 'webhook_endpoint',
'webhook_channel', 'webhook_channel',
'webhook_botname', 'webhook_botname',
'google_login',
'google_client_id',
'google_client_secret',
'google_redirect',
]; ];
/** /**