This commit is contained in:
Andras Bacsai
2023-05-05 12:08:38 +02:00
parent dcc1c72882
commit 96b9f8213c
16 changed files with 175 additions and 33 deletions

View File

@@ -0,0 +1,25 @@
<?php
namespace App\Http\Livewire\Project\Application\Storages;
use Livewire\Component;
class Show extends Component
{
public $storage;
protected $rules = [
'storage.name' => 'required|string',
'storage.mount_path' => 'required|string',
'storage.host_path' => 'string|nullable',
];
public function submit()
{
$this->validate();
$this->storage->save();
}
public function delete()
{
$this->storage->delete();
$this->emit('refreshStorages');
}
}