Skip to content

Commit

Permalink
feat(auth): update Auth facade methods to use Customer model type hints
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Poyigi <[email protected]>
  • Loading branch information
sampoyigi committed Feb 20, 2025
1 parent 7b77e72 commit e7c55e8
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions src/Facades/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,32 @@
use Illuminate\Support\Facades\Facade;

/**
* @method static \Igniter\User\Models\Customer|\Illuminate\Contracts\Auth\Authenticatable|null customer()
* @method static void isLogged()
* @method static void getId()
* @method static void getFullName()
* @method static void getFirstName()
* @method static void getLastName()
* @method static void getEmail()
* @method static void getTelephone()
* @method static void getAddressId()
* @method static void getGroupId()
* @method static \Illuminate\Contracts\Auth\Authenticatable|\Igniter\User\Auth\Models\User|null user()
* @method static \Igniter\User\Models\Customer|null customer()
* @method static bool isLogged()
* @method static null|int getId()
* @method static null|string getFullName()
* @method static null|string getFirstName()
* @method static null|string getLastName()
* @method static null|string getEmail()
* @method static null|string getTelephone()
* @method static null|string getAddressId()
* @method static null|string getGroupId()
* @method static \Igniter\User\Models\Customer|null user()
* @method static int|string|null id()
* @method static bool once(array $credentials = [])
* @method static \Illuminate\Contracts\Auth\Authenticatable|false onceUsingId(mixed $id)
* @method static \Igniter\User\Models\Customer|false onceUsingId(mixed $id)
* @method static bool validate(array $credentials = [])
* @method static \Symfony\Component\HttpFoundation\Response|null basic(string $field = 'email', array $extraConditions = [])
* @method static \Symfony\Component\HttpFoundation\Response|null onceBasic(string $field = 'email', array $extraConditions = [])
* @method static bool attempt(array $credentials = [], bool $remember = false)
* @method static bool attemptWhen(array $credentials = [], array|callable|null $callbacks = null, bool $remember = false)
* @method static \Illuminate\Contracts\Auth\Authenticatable|false loginUsingId(mixed $id, bool $remember = false)
* @method static void login(\Illuminate\Contracts\Auth\Authenticatable $user, bool $remember = false)
* @method static \Igniter\User\Models\Customer|false loginUsingId(mixed $id, bool $remember = false)
* @method static void login(\Igniter\User\Models\Customer $user, bool $remember = false)
* @method static void logout()
* @method static void logoutCurrentDevice()
* @method static \Illuminate\Contracts\Auth\Authenticatable|null logoutOtherDevices(string $password)
* @method static \Igniter\User\Models\Customer|null logoutOtherDevices(string $password)
* @method static void attempting(mixed $callback)
* @method static \Illuminate\Contracts\Auth\Authenticatable getLastAttempted()
* @method static \Igniter\User\Models\Customer getLastAttempted()
* @method static string getName()
* @method static string getRecallerName()
* @method static bool viaRemember()
Expand All @@ -40,12 +40,12 @@
* @method static \Illuminate\Contracts\Events\Dispatcher getDispatcher()
* @method static void setDispatcher(\Illuminate\Contracts\Events\Dispatcher $events)
* @method static \Illuminate\Contracts\Session\Session getSession()
* @method static \Illuminate\Contracts\Auth\Authenticatable|null getUser()
* @method static \Igniter\User\Auth\CustomerGuard setUser(\Illuminate\Contracts\Auth\Authenticatable $user)
* @method static \Igniter\User\Models\Customer|null getUser()
* @method static \Igniter\User\Auth\CustomerGuard setUser(\Igniter\User\Models\Customer $user)
* @method static \Symfony\Component\HttpFoundation\Request getRequest()
* @method static \Igniter\User\Auth\CustomerGuard setRequest(\Symfony\Component\HttpFoundation\Request $request)
* @method static \Illuminate\Support\Timebox getTimebox()
* @method static \Illuminate\Contracts\Auth\Authenticatable authenticate()
* @method static \Igniter\User\Models\Customer authenticate()
* @method static bool hasUser()
* @method static bool check()
* @method static bool guest()
Expand All @@ -56,11 +56,11 @@
* @method static void mixin(object $mixin, bool $replace = true)
* @method static bool hasMacro(string $name)
* @method static void flushMacros()
* @method static \Illuminate\Contracts\Auth\Authenticatable|\Igniter\User\Auth\Models\User getById(void $identifier)
* @method static \Igniter\User\Models\Customer getById(void $identifier)
* @method static mixed getByToken(void $identifier, void $token)
* @method static \Illuminate\Contracts\Auth\Authenticatable|null getByCredentials(array $credentials)
* @method static void validateCredentials(\Igniter\User\Auth\Models\User $user, void $credentials)
* @method static void impersonate(\Igniter\User\Auth\Models\User $user)
* @method static \Igniter\User\Models\Customer|null getByCredentials(array $credentials)
* @method static void validateCredentials(\Igniter\User\Models\Customer $user, void $credentials)
* @method static void impersonate(\Igniter\User\Models\Customer $user)
* @method static void stopImpersonate()
* @method static void isImpersonator()
* @method static void getImpersonator()
Expand Down

0 comments on commit e7c55e8

Please sign in to comment.