Use Laravel Sanctum for vuejs #1240
Replies: 2 comments
-
🚨 Bot is not sure about this answer. Please verify. 🚨 I apologize, but I don't have enough specific information in the provided knowledge sources to give a complete answer about using Laravel Sanctum with Backpack for a Vue.js app. Backpack uses its own authentication system by default, and integrating it with Sanctum for a Vue.js frontend is not directly covered in the given documents. However, I can provide some general information about Backpack's authentication system that may be helpful:
To integrate Sanctum with Backpack for a Vue.js app, you would likely need to customize Backpack's authentication process and potentially create a separate API authentication flow for your Vue.js frontend. However, the specific steps to achieve this are not provided in the given knowledge sources. For a more accurate and complete answer, you may want to consult the official Laravel Sanctum documentation and potentially reach out to the Backpack community for specific guidance on integrating Sanctum with Backpack for a Vue.js application. Relevant sources: FAQs for the admin UI|Overwrite Backpack authentication driver, provider, guard or password broker |
Beta Was this translation helpful? Give feedback.
-
Hey @smzapp Backpack's authentication uses a completely separate authentication driver, provider, guard and password broker. They're all named If you need a separate login/auth for the front user, go ahead and set up Sanctum regularly. I also want to highlight that Laravel Sanctum supports both
I'm using it on my project(Laravel+Sanctum+Backpack+lighthouse-php(graphQL API)). But yes, the sanctum has a learning curve.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have been using laravel backpack for my project using default bootstrap jquery. And then, it uses web session-based authentication. Using laravel backpack, how could I use Laravel Sanctum for the authentication in order to protect my VUEJS app.
https://stackoverflow.com/questions/79214747/use-sanctum-in-laravel-backpack-authentication
Beta Was this translation helpful? Give feedback.
All reactions