Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

richardhaddadau's avatar

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:

  1. User enters credentials in the login form
  2. Credentials are checked with the serverless DB
  3. 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?

0 likes
0 replies

Please or to participate in this conversation.