-
I want to use my own "staff"/user model but I noticed there isn't a staff contract to extend/replace. I just want to add some additional methods to the staff. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
This isn't possible currently. You should create a new model for the additional data and create a dynamic relationship. |
Beta Was this translation helpful? Give feedback.
-
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:
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. |
Beta Was this translation helpful? Give feedback.
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:
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.