style: Laravel Pint 코드 포맷팅 적용

- PSR-12 스타일 가이드 준수
- 302개 파일 스타일 이슈 자동 수정
- 코드 로직 변경 없음 (포맷팅만)
This commit is contained in:
2025-11-06 17:45:49 +09:00
parent 48e76432ee
commit cc206fdbed
294 changed files with 4476 additions and 2561 deletions

View File

@@ -3,17 +3,18 @@
namespace App\Services\Authz;
use App\Models\Members\User;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\DB;
final class AccessService
{
public static function allows(User $user, string $permission, int $tenantId, ?string $guardName = null): bool
{
$guard = $guardName ?? config('auth.defaults.guard', 'api'); // ★ 기본 가드
$ver = Cache::get("access:version:$tenantId", 1); // ★ 버전 토큰
$ver = Cache::get("access:version:$tenantId", 1); // ★ 버전 토큰
$key = "access:$tenantId:{$user->id}:$guard:$permission:v{$ver}"; // ★ 키 강화
return Cache::remember($key, now()->addSeconds(20), function () use ($user, $permission, $tenantId, $guard) {
// 1) 개인 DENY