Skip to content
Discussion options

You must be logged in to vote

I ended up finding the registerAuthGuard method in the LunarPanelProvider and so I just overrode it in my AdminServiceProvider. I put this in the boot method:

        $this->app['config']->set('auth.providers.staff', [
            'driver' => 'eloquent',
            'model' => Staff::class, // <--this is now my Staff model (App\Models\Staff) which inherits from the Lunar staff model.
        ]);

        $this->app['config']->set('auth.guards.staff', [
            'driver' => 'session',
            'provider' => 'staff',
        ]);

I am now getting an instance of my Staff model on login and everywhere I expect. I'm not sure if there are any side effects yet, but it seems to be working.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@cgunnels
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by cgunnels
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants