Skip to content

Commit c4f1c4f

Browse files
committed
wip
1 parent eaf273e commit c4f1c4f

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,16 @@
22

33
## Requirements
44

5+
- PHP 8.4
6+
- MySQL 8+
7+
- Laravel 12+
8+
59
## Installation
610

11+
```sh
12+
composer require conedevelopment/laravel-auth
13+
```
14+
715
## Config
816

917
```php
@@ -18,3 +26,7 @@ class User extends Authenticatable implements VerifiesAuthCodes
1826
```
1927

2028
## Commands
29+
30+
```sh
31+
php artisan auth:clear-expired-auth-codes
32+
```

config/laravel-auth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
return [
44

5-
/*
5+
/*
66
|--------------------------------------------------------------------------
77
| Resetting Passwords
88
|--------------------------------------------------------------------------

src/Http/Requests/AuthCodeVerifyRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function rules(): array
3131
'numeric',
3232
Rule::exists('auth_codes', 'code')->where(function (Builder $query): Builder {
3333
return $query->where('user_id', $this->user()->getKey())
34-
->where('expires_at', '>', Date::now());
34+
->where('expires_at', '>', Date::now());
3535
}),
3636
],
3737
];

tests/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function createApplication(): Application
2626
return $app;
2727
}
2828

29-
public function setUp(): void
29+
protected function setUp(): void
3030
{
3131
parent::setUp();
3232

0 commit comments

Comments
 (0)