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

nolros's avatar
Level 23

Where do you guys store your JSON or static type files?

Hey guys

Wondering where you store your static JSON files?

I'm storing them in storage/json. I was storing them in public but figure not a good place to put data. Resources?

Cheers Nolan

0 likes
1 reply
ddotgrass's avatar

Yeah, probably best you don't store them in public. I've only needed to store a JSON file once, so far, and I put it inside storage. When I work on a bigger project, I'll probably create a directory in there to store them, to make things neater.

1 like

Please or to participate in this conversation.