Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
RhysLees committed Sep 19, 2023
1 parent 7ce062b commit 96ad55a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions config/laravel-auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
*/
'logo' => [
'path' => 'vendor/auth/images/lock.svg',
'width' => '25%',
],

/*
Expand Down
4 changes: 2 additions & 2 deletions resources/views/components/logo.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@if(config('laravel-auth.logo.path') && !filter_var(config('laravel-auth.logo.path'), FILTER_VALIDATE_URL))
<img src="{{ asset(config('laravel-auth.logo.path')) }}" alt="{{__('auth::translations.logo')}}" {{ $attributes->merge(['class' => 'mx-auto w-[25%]']) }}>
<img src="{{ asset(config('laravel-auth.logo.path')) }}" alt="{{__('auth::translations.logo')}}" {{ $attributes->merge(['class' => 'mx-auto', 'style' => 'width: '. config('laravel-auth.logo.width', '25%') .';']) }}>
@else
<img src="{{ config('laravel-auth.logo.path') }}" alt="{{__('auth::translations.logo')}}" {{ $attributes->merge(['class' => 'mx-auto w-[25%]']) }}>
<img src="{{ config('laravel-auth.logo.path') }}" alt="{{__('auth::translations.logo')}}" {{ $attributes->merge(['class' => 'mx-auto', 'style' => 'width: '. config('laravel-auth.logo.width', '25%') .';']) }}>
@endif

0 comments on commit 96ad55a

Please sign in to comment.