Nov 7, 2022
0
Level 2
Laravel with Serverless DB (not AWS)
Hi everyone,
I want to use Laravel for my backend but without an RDB for the data. I'm using a serverless DB (not AWS) to store all my records and data and while most of the getting and setting for the DB will be done via React, I want to store the tokens in the RDB.
If you're still hanging in there with me, here's the process:
- User enters credentials in the login form
- Credentials are checked with the serverless DB
- When successful and a token is sent back, Laravel creates a row with token and user email and then creates a session (with authenticated user).
I can possibly even do away with the SQL DB entirely by just creating a cookie with the token. I just would like to do that on the server side.
Could I get a hand with that, please?
Please or to participate in this conversation.