I am trying to protect routes based on store, but I can’t access store from routes. What is best practice to handle this?
I see preFetch example use directly in components, should I follow this or I can do check in routes file?
I create a sort of middleware that check meta in routes. But unfortunately I can’t access store from routes.
Thanks
T
Latest posts made by twa
-
How to protect routes using store
-
RE: How can i access the store from routes.ts using typescript
Hi @kennyrafael thanks for this tip.
Is this considered a best practice or there is a better way?
-
RE: Example of combining Laravel 8 and Quasar superpowers in separate repos
@yolosan I have installed the laravel repo under a valet directory that can be accessed from laravel.test
and the quasar repo is accessible under localhost:8080In .env I added:
SANCTUM_STATEFUL_DOMAINS=localhost:8080
SESSION_DOMAIN=laravel.testBut I still get cors missing origin issue.
Both repo are accessible separately, but login failed.
What I am missing?
Thanks