Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Commit 8e3fe77

Browse files
authored
Merge pull request #18 from codebar-ag/feature-updates
Feature updates
2 parents 96003bc + fc4f62e commit 8e3fe77

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ return [
224224
'logo' => [
225225
'path' => 'vendor/auth/images/lock.svg',
226226
// 'path' => 'https://example.test/images/logo.png',
227+
'width' => '25%',
227228
],
228229

229230
/*
@@ -341,6 +342,12 @@ You use verification in nova, add the middleware into in your `nova.php` config:
341342

342343
## 🎨 Customisation
343344

345+
You can publish the views using:
346+
347+
```bash
348+
php artisan vendor:publish --tag=auth-views
349+
```
350+
344351
You can publish the assets using:
345352

346353
```bash
@@ -367,14 +374,6 @@ php artisan vendor:publish --tag=auth-translations
367374

368375
This package uses [Laravel Honeypot](https://github.com/spatie/laravel-honeypot) to prevent spam.Check out the [documentation](https://github.com/spatie/laravel-honeypot#readme) to learn how to customise it.
369376

370-
```bash
371-
372-
You can publish the views using:
373-
374-
```bash
375-
php artisan vendor:publish --tag=auth-views
376-
```
377-
378377
## 🚧 Testing
379378

380379
Copy your own phpunit.xml-file.

config/laravel-auth.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
*/
3535
'logo' => [
3636
'path' => 'vendor/auth/images/lock.svg',
37+
'width' => '25%',
3738
],
3839

3940
/*
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@if(config('laravel-auth.logo.path') && !filter_var(config('laravel-auth.logo.path'), FILTER_VALIDATE_URL))
2-
<img src="{{ asset(config('laravel-auth.logo.path')) }}" alt="{{__('auth::translations.logo')}}" {{ $attributes->merge(['class' => 'mx-auto w-[25%]']) }}>
2+
<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%') .';']) }}>
33
@else
4-
<img src="{{ config('laravel-auth.logo.path') }}" alt="{{__('auth::translations.logo')}}" {{ $attributes->merge(['class' => 'mx-auto w-[25%]']) }}>
4+
<img src="{{ config('laravel-auth.logo.path') }}" alt="{{__('auth::translations.logo')}}" {{ $attributes->merge(['class' => 'mx-auto', 'style' => 'width: '. config('laravel-auth.logo.width', '25%') .';']) }}>
55
@endif

0 commit comments

Comments
 (0)