for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace CustomerGauge\Session;
use CustomerGauge\Session\Contracts\UserFactory;
use Illuminate\Contracts\Auth\Authenticatable as LaravelAuthenticatable;
use Illuminate\Contracts\Auth\UserProvider;
final class NativeSessionUserProvider implements UserProvider
{
private $factory;
public function __construct(UserFactory $factory)
$this->factory = $factory;
}
public function retrieveByCredentials(array $session)
return $this->factory->make($session);
/** @phpstan-ignore-next-line */
public function retrieveById($identifier)
{}
public function retrieveByToken($identifier, $token)
public function updateRememberToken(LaravelAuthenticatable $user, $token)
public function validateCredentials(LaravelAuthenticatable $user, array $credentials)