@php //cache the logo setting to reduce calling the database $loginLogo = Cache::rememberForever('loginLogo', function () { return \App\Models\Setting::where('key', 'loginLogo')->value('value'); }); $loginLogoDark = Cache::rememberForever('loginLogoDark', function () { return \App\Models\Setting::where('key', 'loginLogoDark')->value('value'); }); @endphp @if (storage_exists($loginLogo)) {{ config('app.name') }} @else

{{ config('app.name') }}

@endif
{{ $slot }}