proejct wildcard domain
This commit is contained in:
@@ -8,14 +8,22 @@ use Livewire\Component;
|
||||
class Edit extends Component
|
||||
{
|
||||
public Project $project;
|
||||
public string|null $wildcard_domain = null;
|
||||
protected $rules = [
|
||||
'project.name' => 'required|min:3|max:255',
|
||||
'project.description' => 'nullable|string|max:255',
|
||||
'wildcard_domain' => 'nullable|string|max:255',
|
||||
];
|
||||
public function mount()
|
||||
{
|
||||
$this->wildcard_domain = $this->project->settings->wildcard_domain;
|
||||
}
|
||||
public function submit()
|
||||
{
|
||||
$this->validate();
|
||||
try {
|
||||
$this->project->settings->wildcard_domain = $this->wildcard_domain;
|
||||
$this->project->settings->save();
|
||||
$this->project->save();
|
||||
$this->emit('saved');
|
||||
} catch (\Exception $e) {
|
||||
|
||||
Reference in New Issue
Block a user