How to define business constants in laravel
仅有的幸福
仅有的幸福 2017-05-16 13:01:15
0
3
602

When I used Thinkphp in the past, there was a config file that could define some business-level constants. For example, order_open => 1, order_close=>0. Currently, when using laravel, we only know that some system-level constants can be saved in .env files. Which directory is more appropriate to save business-level constants in.

仅有的幸福
仅有的幸福

reply all(3)
大家讲道理

config directory. In it, you can create corresponding configuration files according to the business type

左手右手慢动作

Also config.

phpcn_u1582

Configuration files can be stored in the config directory.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template