mirror of
https://github.com/brufdev/many-notes.git
synced 2026-01-22 02:50:48 -06:00
22 lines
346 B
PHP
22 lines
346 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Actions;
|
|
|
|
use App\Models\User;
|
|
|
|
final readonly class GetPathFromUser
|
|
{
|
|
public function handle(): string
|
|
{
|
|
/** @var User $currentUser */
|
|
$currentUser = auth()->user();
|
|
|
|
return sprintf(
|
|
'private/vaults/%u/',
|
|
$currentUser->id,
|
|
);
|
|
}
|
|
}
|