Search code examples
phplaravelauthenticationfacade

where do i find the laravel auth facade class implementation


i am trying to find the auth facade class implementation which contains its methods (check(),user() etc.) . I have been reffered to the laravel facade class reference in the laravel docs but none of those classes (authmanager in this case) seem to have the methods used on the facade


Solution

  • Definitions are given in

    \Illuminate\Auth\GuardHelpers
    

    and that trait is used by

    1. Illuminate\Auth\SessionGuard
    2. Illuminate\Auth\RequestGuard
    3. Illuminate\Auth\TokenGuard

    Each of the above classes, individually have a user() function that helps the rest of the GuardHelper functions...

    Hope this answers everything