I'd go with the .env file unless of course there are a shit load of them.
Dec 26, 2020
4
Level 39
Where to put global constants?
What's the (best) place to put php constants used in all a project?
Level 122
If you need to change these constants between different deployments then use .env
Otherwise put them in a config file. All you need to do is create a php file in the config folder and in that file return an array.
You can then use these anywhere in your code with the config helper
Please or to participate in this conversation.