Skip to content

Commit 67ab6e1

Browse files
committed
wip
1 parent c777bac commit 67ab6e1

File tree

1 file changed

+32
-2
lines changed

1 file changed

+32
-2
lines changed

src/repositories/auth.ts

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ interface Request
5050
/**
5151
* @return ${authenticatable}|null
5252
*/
53-
public function user();
53+
public function user($guard = null);
5454
}`,
5555
},
5656
{
@@ -62,10 +62,40 @@ namespace Illuminate\\Support\\Facades;
6262
6363
interface Auth
6464
{
65+
/**
66+
* @return ${authenticatable}|false
67+
*/
68+
public static function loginUsingId(mixed $id, bool $remember = false);
69+
70+
/**
71+
* @return ${authenticatable}|false
72+
*/
73+
public static function onceUsingId(mixed $id);
74+
6575
/**
6676
* @return ${authenticatable}|null
6777
*/
68-
public function user();
78+
public static function getUser();
79+
80+
/**
81+
* @return ${authenticatable}
82+
*/
83+
public static function authenticate();
84+
85+
/**
86+
* @return ${authenticatable}|null
87+
*/
88+
public static function user();
89+
90+
/**
91+
* @return ${authenticatable}|null
92+
*/
93+
public static function logoutOtherDevices(string $password);
94+
95+
/**
96+
* @return ${authenticatable}
97+
*/
98+
public static function getLastAttempted();
6999
}`,
70100
},
71101
];

0 commit comments

Comments
 (0)