This commit is contained in:
Andras Bacsai committed 2023-05-04 15:45:53 +02:00
1 parent ec0e560bac
commit d5b332fc59
16 files changed
+149 -43

No files matched your search

+2 -2
View File
@@ -19,9 +19,9 @@ class Change extends Component
{
$this->private_key = PrivateKey::where('uuid', $this->private_key_uuid)->first();
}
public function delete($private_key_uuid)
public function delete()
{
PrivateKey::where('uuid', $private_key_uuid)->delete();
PrivateKey::where('uuid', $this->private_key_uuid)->delete();
session('currentTeam')->privateKeys = PrivateKey::where('team_id', session('currentTeam')->id)->get();
redirect()->route('dashboard');
}