29 lines
730 B
PHP
29 lines
730 B
PHP
<?php
|
|
|
|
namespace Zoomyboy\LaravelNami\Authentication;
|
|
|
|
use Illuminate\Support\Facades\Facade;
|
|
|
|
/**
|
|
* @method static void assertNotLoggedIn()
|
|
* @method static void success(string $mglnr, string $password)
|
|
* @method static void fails(string $mglnr, string $password)
|
|
* @method static void assertLoggedInWith(string $mglnr, string $password)
|
|
* @method static void assertNotLoggedInWith(string $mglnr, string $password)
|
|
* @method static void assertLoggedIn()
|
|
*/
|
|
class Auth extends Facade
|
|
{
|
|
public static function getFacadeAccessor()
|
|
{
|
|
return Authenticator::class;
|
|
}
|
|
|
|
public static function fake(): Authenticator
|
|
{
|
|
static::swap($fake = app(FakeCookie::class));
|
|
|
|
return $fake;
|
|
}
|
|
}
|