Example of combining Laravel 8 and Quasar superpowers in separate repos
-
Hello.
I’ve created two example repositories of using Quasar framework and Laravel 7:
- https://github.com/training-yoyosan/example-frontend
- https://github.com/training-yoyosan/example-backend
Let me know if you run into any issues. PRs are welcome
Notes:
- These projects use the Cookie based authentication from Laravel Sanctum
- To be able to test the API in Postman use this guide
-
@yolosan Thank you! very useful
-
Status Code: 419 unknown status why did i get this error when i try logging in
-
Sorry for the late answer.
@irexqudiet said in Example of combining Laravel 7 and Quasar superpowers in separate repos:
Status Code: 419 unknown status why did i get this error when i try logging in
It’s usually due to misconfiguration of these variables in your .env file:
SANCTUM_STATEFUL_DOMAINS
andSESSION_DOMAIN
Check out the note here.
-
@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
-
Hello, I have followed every steps for local environment. it gives me 419 error woth CSRF mismatch message. I have tried several ways. It didn’t work.
-
for me as well, 419 caused by a CSRF mismatch