dependencies-upgrade

This commit is contained in:
RafficMohammed
2023-01-08 02:20:59 +05:30
parent 7870479b18
commit 49021a4497
1711 changed files with 74994 additions and 70803 deletions

View File

@@ -3,6 +3,7 @@
namespace Laravel\Dusk\Http\Controllers;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Session;
use Illuminate\Support\Str;
class UserController
@@ -31,7 +32,7 @@ class UserController
* Login using the given user ID / email.
*
* @param string $userId
* @param string $guard
* @param string|null $guard
* @return void
*/
public function login($userId, $guard = null)
@@ -50,12 +51,16 @@ class UserController
/**
* Log the user out of the application.
*
* @param string $guard
* @param string|null $guard
* @return void
*/
public function logout($guard = null)
{
Auth::guard($guard ?: config('auth.defaults.guard'))->logout();
$guard = $guard ?: config('auth.defaults.guard');
Auth::guard($guard)->logout();
Session::forget('password_hash_'.$guard);
}
/**