If you want to develop your package, you should have a question for it, how to make develop blazing here is my strategy for package development.
It’s about vanilla PHP, here is documentation PHP: Traits – Manual, here is an example.
Laravel Sanctum is a lightweight authentication system for SPAs and mobile, it’s the token based APIs, here is a simple example with Vue.js.
It needs to think about this, for my situation, I need to query when audits table has any data, but the result requiring with it, so how to do this?