Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
RhysLees committed Sep 18, 2023
1 parent 6804332 commit d51d5cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,11 +218,12 @@ return [
| Logo Settings
|--------------------------------------------------------------------------
| You may like to define a different logo for the login page.
| The path is relative to the public folder.
| You can pass either a path relative to the public folder or a full url.
|
*/
'logo' => [
'path' => 'vendor/auth/images/lock.svg',
// 'path' => 'https://example.test/images/logo.png',
],

/*
Expand Down
4 changes: 3 additions & 1 deletion resources/views/components/logo.blade.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@if(config('laravel-auth.logo.path'))
@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%]']) }}>
@else
<img src="{{ config('laravel-auth.logo.path') }}" alt="{{__('auth::translations.logo')}}" {{ $attributes->merge(['class' => 'mx-auto w-[25%]']) }}>
@endif

0 comments on commit d51d5cc

Please sign in to comment.