Add Vault show page

Add VaultNode CRUD features
Add VaultNode search feature
Add TreeView component
This commit is contained in:
Bruno
2024-10-04 19:37:43 +01:00
parent 6b319552fc
commit b2b86fe513
32 changed files with 981 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
<?php
namespace App\Actions;
use App\Models\VaultNode;
class GetPathFromVaultNode
{
public function handle(VaultNode $node): string
{
$path =
'vaults' . DIRECTORY_SEPARATOR .
auth()->user()->id . DIRECTORY_SEPARATOR .
$node->vault_id . DIRECTORY_SEPARATOR .
$node->id . '.' . $node->extension;
return $path;
}
}