Answer the question
In order to leave comments, you need to log in
How to compare the field data in db and the value passed through request, if the field value is formed in the model?
There is a name column in the DB whose value is int().
In model I form constants.
const NAME = 1;
const CAR = 2;
const TR = 3;
const PROVIDER = 4;
const CLIENT = 5;
return [
self::NAME => 'техника',
self::CAR => 'авто',
self::TR => 'терминал',
self::PROVIDER => 'интернет',
self::CLIENT => 'клиент',
];
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question