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

ivanmucyongabo's avatar

Database config

I am at the start of what I expect to be large project and I am new to Laravel. I am trying to get something minimal setup and do not need a database at the time. How do I remove the database calls from my project. After making some changes to config files I get the following error; Target class [db] does not exist. I appreciate any help but I really don't want to use any of the defaults(even temporarily) b/c I'll be working with a mixture of cloud sql and firestore.

0 likes
2 replies
Snapey's avatar

just leave the code alone

change session store to file and don't install any authentication scaffolding

ivanmucyongabo's avatar

Thanks for the quick reply

Going along with your suggestions, I started looking at my scaffolding b/c I am using Jetstream which also adds fortify. I change the session config, but I am now getting the following error

could not find driver (SQL: select * from `sessions` where `id` = someid

The trace tells me that even though the session is in file mode, at some point DatabaseSessionHandler is being called instead of FileSessionHandler.

What else should i be changing I've looked at the fortify, auth, and jetstream config and I can't see what else to change.

Please or to participate in this conversation.