File tree Expand file tree Collapse file tree 4 files changed +14
-36
lines changed Expand file tree Collapse file tree 4 files changed +14
-36
lines changed Original file line number Diff line number Diff line change 2
2
3
3
All notable changes to ` filament-two-factor-authentication ` will be documented in this file.
4
4
5
+ ## 3.0.2 - 2025-08-17
6
+
7
+ ### What's Changed
8
+
9
+ * Revert logout action deletion by @stephenjude in https://github.com/stephenjude/filament-two-factor-authentication/pull/77
10
+
11
+ ** Full Changelog** : https://github.com/stephenjude/filament-two-factor-authentication/compare/3.0.1...3.0.2
12
+
5
13
## 3.0.1 - 2025-08-16
6
14
7
15
### What's Changed
Original file line number Diff line number Diff line change 2
2
3
3
namespace Stephenjude \FilamentTwoFactorAuthentication \Events ;
4
4
5
- use Filament \ Models \ Contracts \ FilamentUser ;
5
+ use Illuminate \ Foundation \ Auth \ User ;
6
6
use Illuminate \Queue \SerializesModels ;
7
7
8
8
class RecoveryCodeReplaced
9
9
{
10
10
use SerializesModels;
11
11
12
- /**
13
- * The authenticated user.
14
- */
15
- public FilamentUser $ user ;
16
-
17
- /**
18
- * The recovery code.
19
- */
20
- public string $ code ;
21
-
22
12
/**
23
13
* Create a new event instance.
24
14
*/
25
- public function __construct (FilamentUser $ user , string $ code )
26
- {
27
- $ this ->user = $ user ;
28
- $ this ->code = $ code ;
29
- }
15
+ public function __construct (public User $ user , public string $ code ) {}
30
16
}
Original file line number Diff line number Diff line change 2
2
3
3
namespace Stephenjude \FilamentTwoFactorAuthentication \Events ;
4
4
5
- use Filament \ Models \ Contracts \ FilamentUser ;
5
+ use Illuminate \ Foundation \ Auth \ User ;
6
6
use Illuminate \Foundation \Events \Dispatchable ;
7
7
8
8
class RecoveryCodesGenerated
9
9
{
10
10
use Dispatchable;
11
11
12
- /**
13
- * The user instance.
14
- */
15
- public FilamentUser $ user ;
16
-
17
12
/**
18
13
* Create a new event instance.
19
14
*/
20
- public function __construct (FilamentUser $ user )
21
- {
22
- $ this ->user = $ user ;
23
- }
15
+ public function __construct (public User $ user ) {}
24
16
}
Original file line number Diff line number Diff line change 2
2
3
3
namespace Stephenjude \FilamentTwoFactorAuthentication \Events ;
4
4
5
- use Filament \ Models \ Contracts \ FilamentUser ;
5
+ use Illuminate \ Foundation \ Auth \ User ;
6
6
use Illuminate \Foundation \Events \Dispatchable ;
7
7
8
8
abstract class TwoFactorAuthenticationEvent
9
9
{
10
10
use Dispatchable;
11
11
12
- /**
13
- * The user instance.
14
- */
15
- public $ user ;
16
-
17
12
/**
18
13
* Create a new event instance.
19
14
*/
20
- public function __construct (FilamentUser $ user )
21
- {
22
- $ this ->user = $ user ;
23
- }
15
+ public function __construct (public User $ user ) {}
24
16
}
You can’t perform that action at this time.
0 commit comments