Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using with inertia and vue #19

Open
mssayari opened this issue Nov 6, 2021 · 2 comments
Open

using with inertia and vue #19

mssayari opened this issue Nov 6, 2021 · 2 comments
Assignees
Labels
feat This issue is about a new feature

Comments

@mssayari
Copy link

mssayari commented Nov 6, 2021

Hi,

I recently move to use vue for front-end with Inertia. is there anyway that I can use this? for instance by overriding method which call view ?

@erdemkeren
Copy link
Owner

Hello!

There is no built-in way to work with a SPA or Inertiajs. At least not yet.

However, if you check the OtpRoutes::register() method and redirectToOtpPage method, you will see that I use some Laravel controller actions, route definitions and middleware to make this package work.

Depending on your requirements, you can register your own routes, controllers and middleware to return different views (inertia views in this case), use different storage for the token (if you go stateless, probably your app state) etc.

@erdemkeren erdemkeren added the feat This issue is about a new feature label Nov 22, 2021
@erdemkeren erdemkeren self-assigned this Nov 22, 2021
@mssayari
Copy link
Author

mssayari commented Dec 4, 2021

Great. yeah I just override those routes to call my own controller to display custom view.
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat This issue is about a new feature
Projects
None yet
Development

No branches or pull requests

2 participants