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,18 @@
<?php
namespace App\Actions;
use GuzzleHttp\Psr7\Utils;
use Illuminate\Support\Str;
use GuzzleHttp\Psr7\UriResolver;
class ResolveTwoPaths
{
public function handle(string $currentPath, string $path): string
{
$uri = Utils::uriFor(trim($path));
$resolvedUri = UriResolver::resolve(Utils::uriFor(trim($currentPath)), $uri);
return Str::ltrim($resolvedUri, '/');
}
}