Oct 2, 2015
0
Level 4
Using constants in Eloquent Model?
I want to store the current stripe subscription status in my eloquent model so that I can do some comaprisons in my view and display specific information.
\\model
const CONST1 = 0;
const CONST2 = 1;
Or is the better way of using constants in the config folder and retrieve them using Config::get ()?
I will use them for storing user statuses, entity statuses, subscription statuses and a few more.
Please or to participate in this conversation.