snipe-it/app/Http/Livewire/SlackSettingsForm.php

27 lines
623 B
PHP
Raw Normal View History

2023-01-24 09:25:05 -08:00
<?php
namespace App\Http\Livewire;
use Livewire\Component;
use App\Models\Setting;
class SlackSettingsForm extends Component
{
public Setting $setting;
2023-01-25 14:29:20 -08:00
protected $rules = [
'setting.slack_endpoint' => 'url|required_with:slack_channel|starts_with:https://hooks.slack.com/|nullable',
'setting.slack_channel' => 'required_with:slack_endpoint|starts_with:#|nullable',
'setting.slack_botname' => 'string|nullable',
];
2023-01-24 09:25:05 -08:00
public function render()
{
return view('livewire.slack-settings-form');
}
}