<?php

declare(strict_types=1);

namespace Maestro\Core\Support;

use Maestro\Core\Models\User;

/**
 * Default Spatie guard for Maestro CORE permissions and roles (must match {@see User::guardName()}).
 */
final class PermissionGuardName
{
    public static function forApp(): string
    {
        $guard = config('auth.defaults.guard');

        return (is_string($guard) && $guard !== '') ? $guard : 'web';
    }
}
