Reputation: 716
I need to create some settings for controller method, accessible in view, for example: ajaxRefreshTime
Now, I found two ways:
May be there are more interesting ways?
Upvotes: 0
Views: 60
Reputation: 15027
Normally the global settings are saved in .env
file like
APP_NAME
DB_DATABASE
I think this is more a personal preference than a rule. You can save it in app/config
also.
Upvotes: 1