You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@mridah Isn't the best place where ask support to this. Btw you can define constants where you want, but for me you can define what you want in the container and then you have where you need.
Additionally, if you want to define constants for use on all your controllers, the best way would be to have them all extend a base class that only defines class constants and use them within your controllers. That way, you keep those constants inside your context (aka the controllers).
Just remember that if you start to have too many constants etc, you may be disguising mutations and the like with them, so make sure you don't have overcomplicated switch / if/then/else structures as they are normally a give-away of the need to a better structure in your code.
is there a way I can declare constants somewhere so I can just use them in my controllers ? @akrabat @namaless @needcaffeine @jeremykendall
The text was updated successfully, but these errors were encountered: