Something went wrong. Try again.
Resolve AT Protocol DIDs, handles, and schemas with intelligent caching for Laravel
Something went wrong. Try again.
444 B · 22 lines
PHP
at dev
1234567891011121314151617181920212223<?php
namespace SocialDept\AtpResolver\Support\Concerns;
trait HasConfig{ /** * Get configuration value with fallback for testing. */ protected function getConfig(string $key, mixed $default): mixed { if (! function_exists('config')) { return $default; }
try { return config($key, $default); } catch (\Throwable) { return $default; } }}